【问题标题】:Apache Cassandra metrics not showing up in prometheusApache Cassandra 指标未显示在普罗米修斯中
【发布时间】:2018-01-18 20:24:51
【问题描述】:

我已导出 JMX 并配置了 prometheus。并尝试获取我们在 dse 版本的 opscenter 中的图表。我们如何在 prometheus 中获取它们。

以下是我正在寻找的指标:

Read Requests/sec
Write Requests/sec
Write Pending/sec 
Read Pending/sec
Dropped Mutation
Co-ordinator Latency
Stream-in Data
Datacenter Message Latency

【问题讨论】:

  • 几个月前,我遇到了类似的问题,我想在其中提取提示的指标,但在实践中不可用(即使它在文档中提到)。所以你可能需要先在这里仔细检查cassandra.apache.org/doc/latest/operating/metrics.html。如果提及但不可用,您可以向 cassandra 团队提出一个 JIRA。希望对您有所帮助。

标签: cassandra jmx prometheus exporter


【解决方案1】:

您可以使用 Grafana 并将 prometheus 添加为数据源。完成后,您应该可以使用 PromQL 在仪表板中绘制小部件。

您需要使用指标名称,具体取决于您在 Prometheus 配置 yaml 中的映射方式。

我的配置具有以下节点级别指标的映射:

  • 模式:org.apache.cassandra.metrics<type=(ClientRequest), scope=(Read|Write|RangeSlice), name=(Latency|TotalLatency)><>(Count|OneMinuteRate|FiveMinuteRate)
  • 姓名:cassandra_$1_$2_$3_$4

因此,对于每秒读取请求(和写入请求),我使用指标 - cassandra_ClientRequest_Read_Latency_OneMinuteRate - 来绘制 oneminuterate。

【讨论】:

    猜你喜欢
    • 2021-02-13
    • 2020-01-10
    • 2020-11-12
    • 2021-09-13
    • 1970-01-01
    • 2022-12-02
    • 2020-12-23
    • 2020-11-10
    • 1970-01-01
    相关资源
    最近更新 更多