MetricQL function inside the PromQL

Viewed 119

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 Answers

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

More info at the Prometheus documentation here.

Related