Skip to content

Conversation

fionaliao
Copy link
Contributor

@fionaliao fionaliao commented Mar 12, 2025

Out-of-order native histograms has been available in Prometheus since September 2024, and has no known issues. We have enabled it by default in Grafana Labs for a while (with Mimir which uses a fork of Prometheus), and that doesn't have known issues either.

Therefore proposing to remove the flag entirely and always have it on (edit: now keeping the flag but making it a no-op as per #16207 (comment)).

Always having OOO NH on removes some of the complexity from the code and for users configuring Prometheus - there are still two settings that need to be configured (out-of-order time window > 0 and native histograms enabled) for this feature to be enabled.

This feature has been available in Prometheus since September 2024,
and has no known issues. Therefore proposing to remove the flag
entirely and always have it on. Note that there are still two
settings that need to be configured (out-of-order time window > 0
and native histograms enabled) for this feature to work.

Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
@fionaliao fionaliao marked this pull request as ready for review March 12, 2025 16:16
@fionaliao fionaliao requested a review from jesusvazquez as a code owner March 12, 2025 16:16
Copy link
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good (but maybe @krajorama should verify). Just a nit about a special warning for formerly existing feature flags.

Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
@fionaliao fionaliao changed the title Remove experimental out-of-order native histogram flag Make out-of-order native histograms flag a no-op and always enabled Mar 17, 2025
@fionaliao fionaliao changed the title Make out-of-order native histograms flag a no-op and always enabled Make out-of-order native histograms flag a no-op and always enable Mar 17, 2025
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
@krajorama krajorama self-requested a review March 17, 2025 14:37
fionaliao and others added 3 commits March 18, 2025 09:32
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Fiona Liao <fiona.y.liao@gmail.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Fiona Liao <fiona.y.liao@gmail.com>
Co-authored-by: George Krajcsovits <krajorama@users.noreply.github.com>
Signed-off-by: Fiona Liao <fiona.y.liao@gmail.com>
@fionaliao fionaliao force-pushed the fl/remove-ooo-nh-flag branch from b3970ad to 372f95a Compare March 18, 2025 09:37
Signed-off-by: Fiona Liao <fiona.liao@grafana.com>
@fionaliao fionaliao force-pushed the fl/remove-ooo-nh-flag branch from 372f95a to a12e38f Compare March 18, 2025 09:45
Copy link
Member

@krajorama krajorama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fionaliao fionaliao merged commit 37c2ebb into prometheus:main Mar 18, 2025
27 checks passed
charleskorn added a commit to grafana/mimir that referenced this pull request Mar 21, 2025
charleskorn added a commit to grafana/mimir that referenced this pull request Mar 21, 2025
zenador pushed a commit to grafana/mimir that referenced this pull request Mar 21, 2025
* Upgrade mimir-prometheus

* Adjust tests to match new pretty printing format in prometheus/prometheus#16083

* Fix breaking change from prometheus/prometheus#16156

* Upgrade to github.com/oklog/ulid/v2 (prometheus/prometheus#16168)

* Bring in changes from prometheus/prometheus#16199

* Remove OOO native histograms flag (prometheus/prometheus#16207)

* Add changelog entries

* Ignore deprecation warning for `model.NameValidationScheme`

* Remove outdated native histogram OOO integration test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants