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?
I think you're searching for the "topk" aggregation operator.
More info at the Prometheus documentation here.