Skip to content

feat: enable out-of-order samples - #865

Merged
sinapah merged 3 commits into
mainfrom
feat/enabled-out-of-order-samples
Sep 14, 2026
Merged

sinapah merged 3 commits into
mainfrom
feat/enabled-out-of-order-samples

Conversation

@sinapah

@sinapah sinapah commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Issue

Fixes #564.
Similar to: canonical/mimir-operators#468

Solution

Add a charm config option called out_of_order_time_window, named after the upstream config name that is disabled by default. It's a string that accepts the time units s, m, etc.

Context

Look at the upstream docs for more details: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tsdb.

Testing Instructions

First, observe the "before" behaviour by following the steps in this comment: #564 (comment).

Then, pack and refresh the Promtheus charm. After you configure Prometheus to have an out of order window of 5 minutes (juju config prom out_of_order_time_window=5m),the errors should now go away.
There should be a storage section at the bottom of the config file, looking like:

storage:
  tsdb:
    out_of_order_time_window: 5m

Upgrade Notes

@sinapah
sinapah marked this pull request as ready for review September 14, 2026 17:46
@sinapah
sinapah requested a review from a team as a code owner September 14, 2026 17:46
Comment thread charmcraft.yaml
@sinapah
sinapah merged commit 5189775 into main Sep 14, 2026
26 checks passed
@sinapah
sinapah deleted the feat/enabled-out-of-order-samples branch September 14, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Out of order sample from remote write

3 participants