I have a ClickHouse cluster with 3 shards. I want to monitor this cluster using Prometheus, but the metrics provided by ClickHouse do not include data related to shard activity or availability.
I added the following configuration to config.xml to enable Prometheus integration:
<prometheus>
<endpoint>/metrics</endpoint>
<port>9363</port>
<metrics>true</metrics>
<events>true</events>
<asynchronous_metrics>true</asynchronous_metrics>
</prometheus>
I have a ClickHouse cluster with 3 shards. I want to monitor this cluster using Prometheus, but the metrics provided by ClickHouse do not include data related to shard activity or availability.
I added the following configuration to config.xml to enable Prometheus integration:
<prometheus>
<endpoint>/metrics</endpoint>
<port>9363</port>
<metrics>true</metrics>
<events>true</events>
<asynchronous_metrics>true</asynchronous_metrics>
</prometheus>
Share
Improve this question
edited Jan 25 at 8:55
Mark Rotteveel
109k229 gold badges156 silver badges220 bronze badges
asked Jan 21 at 11:40
Mohammad Reza MousaviMohammad Reza Mousavi
1,4742 gold badges13 silver badges22 bronze badges
1
- So, you mean your prometheus scraps metrics that don't interest you? you can write your own custom metrics – John Galt Commented Jan 21 at 13:15
1 Answer
Reset to default 0Actually you have lot of metrics related to Distributed tables in prometheus endpoint
look to
SELECT * system.metrics WHERE metric ILIKE '%distrib%' FORMAT Vertical
SELECT * system.asynchronous_metrics WHERE metric ILIKE '%distrib%' FORMAT Vertical
and
SELECT * FROM system.events WHERE event ILIKE '%distrib%' FORMAT Vertical
for description