Skip to main content
ClickHouse exposes its own metrics on a dedicated port in the Prometheus text format, so that a Prometheus server can scrape them. To store Prometheus metrics in ClickHouse and query them with PromQL, see Prometheus HTTP API and PromQL instead.
If you’re using ClickHouse Cloud, you can expose metrics to Prometheus using the Prometheus Integration.

Configure the metrics port

Configure a dedicated port when a Prometheus server needs to scrape ClickHouse’s own metrics:

Configure extended handlers

Section <prometheus.handlers> can be used to make more extended handlers on the same port. This section is similar to <http_handlers> but works for prometheus protocols:

Settings

For the complete behavior of these settings, see the Prometheus section of the server settings reference.

Check the endpoint

Last modified on September 14, 2026