clickhouse_exporter icon indicating copy to clipboard operation
clickhouse_exporter copied to clipboard

hyphens in metric names causing scrape failures

Open jpiper opened this issue 2 years ago • 1 comments

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

jpiper avatar Nov 09 '21 11:11 jpiper

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

vdimir avatar Nov 10 '21 08:11 vdimir