Integrate Grafana Cloud with Astra DB Serverless

Grafana Cloud can consume and visualize Astra DB Serverless health metrics.


  • You exported metrics to a third-party observability service. This guide assumes that you exported metrics to Prometheus, but you can also export metrics to Kafka, Amazon CloudWatch, Splunk, Pulsar, and Datadog.

  • You have a Grafana Cloud account.

  • You have an application token.

Generate a Grafana Cloud config file

You must generate a config file to view metrics from Prometheus:

  1. Sign in to your Grafana Cloud account, and then add a connection.

  2. Search for Prometheus, and then select Hosted Prometheus metrics.

  3. Specify a Token name, and then create the token.

The config file is generated. Here’s an example config file:

cat << EOF > ./agent-config.yaml
    scrape_interval: 60s
  - name: hosted-prometheus
      - job_name: node
        - targets: ['localhost:9100']
          username: PROMETHEUS_USER_NAME
          password: PROMETHEUS_PASSWORD

Export metrics from Astra DB Serverless

You can use Postman and the DevOps API to configure and publish metrics from Astra DB Serverless:

  1. To publish metrics, create a POST request in Postman to the following URL:{DATABASE_ID}/telemetry/metrics
  2. In the Body, set the parameters to the values that you retrieved from Grafana Cloud:

      "prometheus_remote": {
        "endpoint": "PROMETHEUS_URL",
        "auth_strategy": "basic",
        "user": "PROMETHEUS_USER_NAME",
        "password": "PROMETHEUS_PASSWORD"

    The POST response returns a 202 Accepted status code on success.

  3. In Grafana Cloud, create a dashboard.

  4. Select your Prometheus data source, and then select Code mode.

    If configured correctly, the Astra DB Serverless metrics are shown under the Metrics Browser.

  5. Select the metrics that you want to visualize in Grafana Cloud.

Create an Astra DB Serverless dashboard from a template

You can use a template to create a Astra DB Serverless dashboard in Grafana Cloud.

This option is for Serverless (Non-Vector) databases only.

  1. In your Grafana Cloud instance, import a dashboard.

  2. Upload or enter the grafana_dashboard.json template.

  3. Click Load.

Once imported, your Serverless (Non-Vector) health charts autopopulate in Grafana Cloud.

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000,