IntegrationsCockroachDB Integration

CockroachDB Integration for Grafana Cloud

CockroachDB is a cloud-native SQL database for building global, scalable cloud services that survive disasters. The CockroachDB Integration enables the Grafana Cloud Agent to send metrics to Grafana Cloud. The integration also creates a useful default dashboard for visualization of CockroachDB metrics within Grafana Cloud.

Use the walkthrough in Grafana Cloud to install the CockroachDB Integration, like in our Quickstart.

Post-install configuration for the CockroachDB Integration

CockroachDB exposes the metrics endpoint at /_status/vars. The following agent configurations defines a scrape job that pulls the metrics from a CockroachDB instance on localhost. If CockroachDB is running on a different host the address must be adapted.

prometheus:
  # ...
  configs:
  - name: integrations:
    scrape_configs:
    - job_name: integrations/cockroachdb
      metrics_path: /_status/vars
      static_configs:
        - targets: ['localhost:8080']