简体   繁体   English

PromQL 中的 MetricQL 函数

[英]MetricQL function inside the PromQL

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 中复制该功能?

I think you're searching for the "topk" aggregation operator.我认为您正在寻找“topk”聚合运算符。

More info at the Prometheus documentation here . 此处的 Prometheus 文档中的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM