jeyrce / clickhouse_exporter

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clickhouse Exporter for Prometheus

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 --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.net/dashboards/882

About

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

License:MIT License


Languages

Language:Go 94.7%Language:Dockerfile 4.0%Language:Makefile 1.4%