[processor/transform] Add option for aggregating metrics with same metric identity (resolving Identity Conflict) #16325
Labels
closed as inactive
enhancement
New feature or request
help wanted
Extra attention is needed
priority:p2
Medium
processor/transform
Transform processor
Stale
Component(s)
processor/transform
Is your feature request related to a problem? Please describe.
I have metrics produced by spanmetrics processor, which has an attribute for the http status code. I would like to instead have status classes (eg: 2xx, 4xx, 5xx). If i rename the labels of the metrics, it would lead to Identity Conflict
Describe the solution you'd like
I would like to be able to specify how to merge metrics with the same identity after all transformation has run. (eg: sum, mean, min, max).
Describe alternatives you've considered
I have looked at metricstransform processor, but i would need to specify all status codes there (eg: from 200 to 299), and also create a group for all of these, eg:
Additional context
I believe this feature could address this issue as well: #16224, but is more flexible then the proposed solution there, as it can be combined with other features of the transform processor:
It would also allow some other use-cases, like:
The text was updated successfully, but these errors were encountered: