I have a grafana chart which has multiple same values which i want to merge to single data .check this chart Example : the chart in link has "activity - ExternalNonFinancialBaseRepository (findByStateIn) " occurences multiple times . I want that to be only a single occurence. Any help ?
You can use promql aggregations. I think sum by
here is what you want
By that, you can sum values of same fields:
sum by (class) (YOUR_QUERY)
Take a look at docs: https://prometheus.io/docs/prometheus/latest/querying/operators/