grafana - Prometheus中标 checkout 现次数大于N的系列的显示表

标签 grafana prometheus promql

在 Prometheus 中,根据下面的指标定义,如何呈现指标系列中排名前 5 的重复设备的表格?

top_5_noisy_devices:

    { "device" : "1234", "type" : "foo"}
    { "device" : "1234", "type" : "foo"}
    { "device" : "1234", "type" : "foo"}
    { "device" : "2345", "type" : "foo"}
    { "device" : "4231", "type" : "foo"}
    { "device" : "4354", "type" : "foo"}

我想在 Grafana 中为上述标签渲染一个表格,以显示设备 1234 是选定时间段内的嘈杂设备。 我尝试了 topk 运算符,但它呈现的行数超过 3。(我在表中看到 100 行,而不是 3 行) https://www.robustperception.io/graph-top-n-time-series-in-grafana声称在 Grafana 中支持 topk。但我不明白如何将其适应表格。

最佳答案

关于grafana - Prometheus中标 checkout 现次数大于N的系列的显示表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52049334/

相关文章:

InfluxDB 和 Grafana 图表在 Y 轴导数上使用午夜为 0

regex - 使用正则表达式匹配字符串结尾

kubernetes - 如何用prometheus作为监控计算kubernetes中容器的cpu使用率?

Alertmanager,不同警报规则的不同间隔

kubernetes - 如何让prometheus监控kubernetes服务?

monitoring - 如何在 PromQL 中合并零值(vector(0) 与度量值)

grafana - 在 Grafana 表中显示单个统计信息

带有 Influxdb 的 Grafana 世界地图面板

java - 格拉法纳中的"t.data.data is undefined"

kubernetes - PromQL "where"子句