Closed yuri-rs closed 7 months ago
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
I could work on configuration option PR if you will find this idea reasonable
In my example, the timestamp is different for data points, which is why they were not aggregated into a single data point. This is acceptable.
I achieved my aggregation goal by adding the transform/TruncateTime
processor.
The issue described here is incorrect; therefore, I will close the issue. Apologies for the confusion.
I still don't understand why StartTimestamp is handled differently for Cumulative and Delta counters, but that is a separate matter.
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