I have a counter metric app_events_total
that I am using to track events in my system. The metric has a label named "event" that contains the name of the event.
I would like to create a panel in my dashboard that shows a pie chart of the event counts that have occurred within the specified time range. A slice of the pie for each event name that occurred within the specified range. This is what I have so far.
sum(increase(app_events_total[$__range])) by (event)
The problem is that this is showing event counts in the thousands, even hundreds of thousands, for time ranges that should have no events whatsoever. I'm very stumped by this, any help is greatly appreciated.