Skip to content
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

Prometheus out of order sample from remote write #1622

Open
flands opened this issue Jun 22, 2024 · 0 comments · Fixed by #1669
Open

Prometheus out of order sample from remote write #1622

flands opened this issue Jun 22, 2024 · 0 comments · Fixed by #1669
Labels
bug Something isn't working

Comments

@flands
Copy link
Contributor

flands commented Jun 22, 2024

Bug Report

Which version of the demo you are using? 1.10.0

Symptom

Prometheus logs indicate out-of-order sample errors and sometimes restarts.

What is the expected behavior?

No log message after ts=2024-06-22T13:59:41.447Z caller=manager.go:163 level=info component="rule manager" msg="Starting rule manager..." and Prometheus doesn't restart

What is the actual behavior?

After some period of time (a few minutes) out of order sample logs are seen and in some cases I've experienced Prometheus restarts. For example:

ts=2024-06-22T14:06:42.763Z caller=write_handler.go:134 level=error component=web msg="Out of order sample from remote write" err="out of order sample" series="{__name__=\"target_info\", container_id=\"f2c9465e88d12e42c419403ef8aab2027b18337e74bf7d9610e9576420d2db10\", docker_cli_cobra_command_path=\"docker%20compose\", host_name=\"f2c9465e88d1\", job=\"cartservice\", telemetry_sdk_language=\"dotnet\", telemetry_sdk_name=\"opentelemetry\", telemetry_sdk_version=\"1.9.0\"}" timestamp=1719065202193

While the cartservice / .NET appears to be the most common, this is seen across other services/languages as well.

Reproduce

Download version 1.10.0 and run make start. Once started, tail the Prometheus containers logs (tail -f <ID>) and wait.

Additional Context

Consider enabling out-of-order sample support available in Prometheus 2.39.x: prometheus/prometheus#11075

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants