This is a simple server that periodically scrapes ClickHouse stats and exports them via HTTP for Prometheus consumption.
To run it:
./clickhouse_exporter [flags]Help on flags:
./clickhouse_exporter --helpCredentials(if not default):
via environment variables
CLICKHOUSE_USER
CLICKHOUSE_PASSWORD
docker build . -t clickhouse-exporter
docker run -d -p 9116:9116 clickhouse-exporter -scrape_uri=http://clickhouse-url:8123/
Grafana dashboard could be a start for inspiration https://grafana.net/dashboards/882