-
What Grafana version and what operating system are you using?
I use the online Grafana dashboard. -
What are you trying to achieve?
I connect my Prometheus metrics to Grafana via a server URL and configured a scraping interval of 60s. So all my metrics repeat every 60s, and I want to exclude all repeated metrics in my visualizations and count only the first, but I don’t know how. I added a “uuid” label to each metric, so it should be easy to identify duplicates. -
How are you trying to achieve it?
I tried to use some aggregation and range operations. -
What happened?
I got a count/sum of all metrics, including duplicates. Finally, I got the desired result by using the count_over_time operation, but I’m not sure this query works properly. Also, it should be inefficient to count so many values. -
What did you expect to happen?
I would be happy just to remove all duplicates before any calculation.
Here is a screenshot of the metrics; I would expect to have only the first point here.