最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

prometheus - Clickhouse Cluster Monitoring - Stack Overflow

programmeradmin1浏览0评论

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
Add a comment  | 

1 Answer 1

Reset to default 0

Actually 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

发布评论

评论列表(0)

  1. 暂无评论