You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was seeing errors from my Mimir installation indicating duplicate timestamps, so I thought to add an attribute in the OpenTelemetry collector pipeline to identify the collector the metric was coming from, when adding this attribute my metrics being ingested tripled. I was seeing scrapes for the same pod coming from multiple collectors that were being managed by the targetAllocator.
Steps to Reproduce
Create statefulset collector deployment utilizing the target allocator with a consistent-hash allocation strategy and a filter strategy of relabel-configs and prometheus scrape config along with servicemonitors
Deploy
Observe metrics
Add an attribute and env to identify the pod name of the collector in the metrics
Observe metrics (counts become duplicative and show coming from multiple collectors)
Component(s)
target allocator
What happened?
Description
I was seeing errors from my Mimir installation indicating duplicate timestamps, so I thought to add an attribute in the OpenTelemetry collector pipeline to identify the collector the metric was coming from, when adding this attribute my metrics being ingested tripled. I was seeing scrapes for the same pod coming from multiple collectors that were being managed by the targetAllocator.
Steps to Reproduce
Example config
Expected Result
I would expect each scrape configuration to be distributed only once across collectors.
Actual Result
Metrics scrape configs seem to be duplicated across multiple collectors
Kubernetes Version
1.30.5
Operator version
0.78.2
Collector version
0.116.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04") ContainerOS GKE
Compiler(if manually compiled): (e.g., "go 14.2") otel-collector-contrib library
Log output
Additional context
After removing the attribute:
The text was updated successfully, but these errors were encountered: