Go MIT

clickhouse_exporter

This is a simple server that periodically scrapes ClickHouse stats and exports them via HTTP for Prometheus(https://prometheus.io/) consumption.

C

ClickHouse

Dernière activité 20 nov. 2025
ClickHouse/clickhouse_exporter

405

étoiles

177

forks

1

issues ouvertes

clickhouseexporterprometheusstats

Ce README est souvent en anglais.

Clickhouse Exporter for Prometheus (old clickhouse-server versions)

This is a simple server that periodically scrapes ClickHouse stats and exports them via HTTP for Prometheus consumption.

Exporter could used only for old ClickHouse versions, modern versions have embedded prometheus endpoint. Look details https://clickhouse.com/docs/en/operations/server-configuration-parameters/settings#server_configuration_parameters-prometheus

To run it:

./clickhouse_exporter [flags]

Help on flags:

./clickhouse_exporter --help

Credentials(if not default):

via environment variables

CLICKHOUSE_USER
CLICKHOUSE_PASSWORD

Build Docker image

docker build . -t clickhouse-exporter

Using Docker

docker run -d -p 9116:9116 clickhouse-exporter -scrape_uri=http://clickhouse-url:8123/

Sample dashboard

Grafana dashboard could be a start for inspiration https://grafana.com/grafana/dashboards/882-clickhouse

Projets similaires

Database-agnostic SQL Exporter for Prometheus

Goclickhousedatabasemonitoring
Bburningalchemist
590 étoiles107

A PostgreSQL metric exporter for Prometheus

Go
Pprometheus-community
3,6 k étoiles836

The Prometheus monitoring system and time series database.

Goalertinggraphinghacktoberfest
Pprometheus
66,3 k étoiles10,9 k