https://github.com/ClickHouse/clickhouse_exporter
This is a simple server that periodically scrapes ClickHouse stats and exports them via HTTP for Prometheus(https://prometheus.io/) consumption.
https://github.com/ClickHouse/clickhouse_exporter
clickhouse exporter prometheus stats
Last synced: 21 days ago
JSON representation
This is a simple server that periodically scrapes ClickHouse stats and exports them via HTTP for Prometheus(https://prometheus.io/) consumption.
- Host: GitHub
- URL: https://github.com/ClickHouse/clickhouse_exporter
- Owner: ClickHouse
- License: mit
- Created: 2016-10-09T19:55:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-12-12T06:25:18.000Z (5 months ago)
- Last Synced: 2025-04-25T06:41:54.503Z (29 days ago)
- Topics: clickhouse, exporter, prometheus, stats
- Language: Go
- Homepage:
- Size: 1.18 MB
- Stars: 375
- Watchers: 16
- Forks: 174
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-clickhouse - ClickHouse/clickhouse_exporter - ClickHouse Exporter for Prometheus is a server that scrapes metrics from older ClickHouse versions and exports them via HTTP for Prometheus monitoring. (Integrations / Metrics and Monitoring)
README
# Clickhouse Exporter for Prometheus (old clickhouse-server versions)
This is a simple server that periodically scrapes [ClickHouse](https://clickhouse.com/) stats and exports them via HTTP for [Prometheus](https://prometheus.io/)
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-prometheusTo run it:
```bash
./clickhouse_exporter [flags]
```Help on flags:
```bash
./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