Im using a dashboard from here and it is using a function called topk_max I found that this is from MeticQL.我使用这里的仪表板,它使用了一个名为topk_max的函数,我发现它来自 MeticQL。But Im using prometheus.但我使用普罗米修斯。
Is there any way to replicate the function in PromQL?有没有办法在 PromQL 中复制该功能?
1 个解决方案
解决方案1
0 2021-11-08 23:59:43
I think you're searching for the "topk" aggregation operator.我认为您正在寻找“topk”聚合运算符。
More info at the Prometheus documentation here .此处的 Prometheus 文档中的更多信息。