clickhouse_exporter
clickhouse_exporter copied to clipboard
hyphens in metric names causing scrape failures
In the latest clickhouse version, clickhouse is exporting metrics about devices, and this is generating metric names with hyphens in them, which are not valid for prometheus and scraping fails
# HELP clickhouse_block_active_time_dm-0 Number of BlockActiveTime_dm-0 async processed
# TYPE clickhouse_block_active_time_dm-0 gauge
I have no idea how it can happen, because on clickhouse server side we replace all chars except a-zA-Z0-9_:
in metric name to _
https://github.com/ClickHouse/ClickHouse/pull/26140
Could please you provide server version and config to reproduce problem?
UPD: got it, problem is connected to golang code in clickhouse_exporter and not related to embedded exporter