I have a log-based metric with a high cardinality label. When I try to graph it over a time period with ~5-10k unique values, Monitoring struggles to include them all individually:
![Screen Shot 2021-07-13 at 8.07.44 PM.png](https://snarfed.org/w/wp-content/uploads/2021/07/image-1024x498.png)
Is there any way to break out just the top N values and collapse the rest? Preprocessing function, group by parameter, anything else? Happy to use MQL if necessary.
(I know this is a nontrivial problem in the general case, streaming algorithms etc, but I’m fine with any approximation that works and doesn’t hang my browser for 10s of seconds at a time. 😁)