I used an unsuitable database, because I wanted to test it. But it's impractical and quite annoying, especially as the Grafana datasource for MongoDB Atlas is not available as a free tier. So there's no point.
You'd have to rewrite the code with an ORM (e.g. SQL Alchemy), change the Grafana datasource and modify the dashboards accordingly.
Here's an example of using an ORM with Python for SQL Alchemy.
I used an unsuitable database, because I wanted to test it. But it's impractical and quite annoying, especially as the Grafana datasource for MongoDB Atlas is not available as a free tier. So there's no point.
You'd have to rewrite the code with an ORM (e.g. SQL Alchemy), change the Grafana datasource and modify the dashboards accordingly.
Here's an example of using an ORM with Python for SQL Alchemy.