[processor/metricstransform] aggregate_labels doesn't aggregate Delta counter with different timestamps #31791
Labels
bug
Something isn't working
needs triage
New item requiring triage
processor/metricstransform
Metrics Transform processor
Component(s)
processor/metricstransform
What happened?
Description
I run into the same issue as #12611 but for Delta counter.
I'd like to aggregate Delta counter datapoints with different timestamps into a single datapoint, but it is not possible because of https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/metricstransformprocessor/operation_aggregate_labels.go#L53.
What is the reason to honor timestamp for Delta counters and ignore for Cumulative?
Maybe it would be better to have a configuration option to enable/disable timestamp grouping, so users would be able to explicitly choose it?
Steps to Reproduce
Run collector with config provided
Expected Result
Datapoints for "otlp.collector.metric.count" metric groupped into single datapoint
Actual Result
All 5 datapoints remains separate (because of different timestamp)
Collector version
v0.88.1-0.20231026220224-6405e152a2d9
Environment information
Environment
OS: macOS 14.4
Running on docker
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: