I have a Grafana dashboard panel configured to render the results of a
Prometheus query. There are a large number of series returned by the query,
with the legend displayed to the right. If the user is looking for a
specific series, they have to potentially scroll through all of them, and
it's easy to miss the one they're looking for. So I'd like to sort the
legend by series name, but I can't find any way to do that.

My series name is a concatenation of two labels, so if I could sort the
instant vector returned from the PromQL query by label value, I think
Grafana would use that order in the legend. But I don't see any way to do
that in Prometheus. There is a sort() function, but it sorts by sample
value. And I don't see any way to sort the legend in Grafana.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CAFHj5BfxUNCwSgcBVzhN6GN%2BTf3eNV_E%2BU_B4Y8sqUonRQcMgw%40mail.gmail.com.

Reply via email to