Skip to main content
Kibana is a platform that visualizes data on the Elastic Stack. This page shows how to use the CockroachDB module for Metricbeat to collect metrics exposed by your CockroachDB self-hosted cluster’s in Elasticsearch and how to visualize those metrics with Kibana.
To export metrics from a CockroachDB Cloud cluster, refer to or instead of this page.
In this tutorial, you will enable the CockroachDB module for Metricbeat and visualize the data in Kibana.
For more information about using the CockroachDB module for Metricbeat, see the Elastic documentation.If you run into problems with this integration, please file an issue on the Beats issue tracker.

Before you begin

Either of the following:
This tutorial assumes that you have . does not expose a compatible monitoring endpoint.

Step 1. Enable CockroachDB module

From your Metricbeat installation directory, run:

Configure security certificates

Open modules.d/cockroachdb.yml in your Metricbeat installation directory. Follow the steps in the Elastic documentation to enable SSL on the CockroachDB module. For example, if you used to , the YAML should look like:
ssl.certificate_authorities, ssl.certificate, and ssl.key should specify the full file paths to your CA certificate, client certificate, and client key, respectively.

Step 2. Start Metricbeat

Load the Kibana dashboards (this may take a few moments):
Launch Metricbeat:

Step 3. View CockroachDB dashboards on Kibana

Open the Kibana web interface and click Dashboard. Search for the CockroachDB dashboard: CockroachDB dashboard selection for Metricbeat Click the dashboard title to open the dashboard, which presents metrics on replicas and query performance: CockroachDB Overview dashboard for Metricbeat

Step 4. Run a sample workload

To test the dashboard functionality, use to run a sample workload on the cluster. Initialize the workload for MovR, a fictional vehicle-sharing company:
Run the MovR workload for 5 minutes:
Click Refresh. The query metrics will appear on the dashboard: CockroachDB Overview dashboard for Metricbeat with SQL metrics

See also