# fk-clickhouse_exporter **Repository Path**: g-mids/fk-clickhouse_exporter ## Basic Information - **Project Name**: fk-clickhouse_exporter - **Description**: 编译发布二进制 https://github.com/ClickHouse/clickhouse_exporter - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: https://github.com/ClickHouse/clickhouse_exporter - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-12-13 - **Last Updated**: 2022-12-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Clickhouse Exporter for Prometheus This is a simple server that periodically scrapes [ClickHouse](https://clickhouse.tech/) stats and exports them via HTTP for [Prometheus](https://prometheus.io/) consumption. To 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.net/dashboards/882