MetricQL function inside the PromQL

510 views Asked by At

Im using a dashboard from here and it is using a function called topk_max I found that this is from MeticQL. But Im using prometheus.

Is there any way to replicate the function in PromQL?

1

There are 1 answers

0
Marcelo Ávila de Oliveira On BEST ANSWER

I think you're searching for the "topk" aggregation operator.

More info at the Prometheus documentation here.