-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unclear warning: Misaligned starting timestamps #38394
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
The Prometheus exposition format does not support Deltas; therefore, when receiving deltas, the Prometheus exporter transforms them into their cumulative representation by aggregating deltas together. (At least that's my understanding 😅) Transforming deltas to cumulative without losing data or semantics is not that simple. The OTel documentation page shows that a lot goes on with StartTimestamp ordering[1] and the concept of Single-Writer[2][3]. Since you mention using multiple collectors, I'm assuming that histograms are arriving out of order or that data points from a single application are being sent separately to different collectors. With data points being sent to different collectors, we're starting to see gaps between the StartTimestamps, causing the misalignment. If you need to scale your collectors, I'd advise you to start using the Loadbalancer exporter before your Prometheus pipeline to ensure metrics from the same stream go to the same pipeline. Code reference for the opentelemetry-collector-contrib/exporter/prometheusexporter/accumulator.go Lines 253 to 275 in a9d8412
|
Component(s)
exporter/prometheus
What happened?
Description
We get an unclear warning and don't know what to do to fix this Misaligned starting timestamps. Can someone please explain what it means and what is the purpose?
Collector version
v0.121.0
Environment information
Environment
OS: Amazon-Linux-2023
OpenTelemetry Collector configuration
Log output
Additional context
In front of the otel-collectore there are multiple otel-agents and each agent collects multiple metrics from multiple services. Furthermore there are two otel-collector running.
The text was updated successfully, but these errors were encountered: