Connect Prometheus to your Managed ClickHouse® cluster
DoubleCloud Managed Service for ClickHouse® allows you to seamlessly integrate Prometheus to monitor ClickHouse® metrics and enable alerting. You'll only need to access the
9363 port of your cluster and to specify the
/metrics endpoint in your Prometheus configuration file. This feature is enabled for all Managed ClickHouse® clusters by default.
This scenario illustrates how to scrape several metrics with a local Prometheus instance.
metrics endpoint is accessible as follows:
Export your ClickHouse® metrics
Go to the Clusters overview page in the console.
Select the cluster from which you want to export metrics.
Open the Monitoring tab.
In the upper-right corner, click .
Follow the instructions in the dialog window:
Get a list of hosts using the DoubleCloud API's
ClusterServiceGet method with the
sensitive:trueflag to get the required credentials. You'll see them under
Use the metrics management solution to visualize the exported metrics. For example, you may use curl to get the raw metrics data in your terminal:
curl -u exporter:<password> <clickhouse_host_address>:9363/metrics