Integrate Grafana with Astra DB Classic
You can use Grafana to visualize metrics exported from Astra DB Classic to a third-party observability service.
-
Export database health metrics to your observability service, as explained in Export Astra DB Classic metrics to third-party services.
To monitor multiple databases, you must export metrics for each database separately. Make a note of the export destination for each database so you can differentiate your data sources in Grafana.
-
In Grafana, add a data source for your observability service.
Make sure you connect to the same server, endpoint, or account where you exported your Astra DB Classic metrics. For example, to configure a Prometheus data source in Grafana, make sure that you connect to the same Prometheus endpoint that you used in the previous step.
If you export metrics to Apache Pulsar™, you must set up an intermediary service that is compatible with Grafana, such as Prometheus. Then, you use that service as your Grafana data source.
-
If required, add more data sources.
For example, if you have multiple databases that export metrics to separate Prometheus endpoints, then you must create a Prometheus data source for each endpoint.
-
To test the connection, go to your data source’s query editor, and then verify that the Astra DB Classic metrics are listed in the available metrics.
-
Create a Grafana dashboard for your Astra DB Classic metrics.