v.20.1New Feature

Add ClickHouse Support for Prometheus Endpoint

Add ability to use ClickHouse as Prometheus endpoint. #7900 (vdimir)
Add the ability to expose ClickHouse as a Prometheus metrics endpoint.

Why it matters

This feature enables ClickHouse to serve its internal metrics in a format compatible with Prometheus, allowing users to easily monitor and collect ClickHouse performance and operational data using Prometheus-based monitoring systems.

How to use it

Users can enable the Prometheus endpoint in the ClickHouse configuration file by setting up the prometheus section under http_handlers. Once enabled, ClickHouse exposes metrics at a specified HTTP endpoint, which can be scraped by Prometheus.