v.22.5New Feature

Add Prometheus Output Format Support

Add output format Prometheus #36051. #36206 (Vladimir C).
Added a new output format Prometheus to ClickHouse, enabling direct export of query results as Prometheus metrics.

Why it matters

This feature allows users to expose ClickHouse query results in a format compatible with Prometheus monitoring systems, facilitating seamless integration with Prometheus for metrics collection and monitoring.

How to use it

To use the new output format, run your ClickHouse query and specify FORMAT Prometheus at the end of the query. For example:

SELECT metric, value FROM table FORMAT Prometheus