Skip to content

Use custom annotation for histogram quantile monotonicity info to provide more details#15578

Merged
beorn7 merged 4 commits intoprometheus:mainfrom
zenador:enrich-anno-monotonicity
Feb 5, 2026
Merged

Use custom annotation for histogram quantile monotonicity info to provide more details#15578
beorn7 merged 4 commits intoprometheus:mainfrom
zenador:enrich-anno-monotonicity

Conversation

@zenador
Copy link
Contributor

@zenador zenador commented Dec 11, 2024

Depends on #15577 which is now merged so this is ready.

Adds more details to the histogram quantile monotonicity info annotation, e.g. min and max timestamps, upper bounds of the min and max buckets affected, number of samples affected, max diff found: PromQL info: input to histogram_quantile needed to be fixed for monotonicity (see https://prometheus.io/docs/prometheus/latest/querying/functions/#histogram_quantile) for metric name "series_1", from buckets 2.5 to 100, with a max diff of 10, over 3 samples from 2023-12-25T00:00:00Z to 2024-12-25T00:00:00Z (1:4)

Supersedes #14339

[ENHANCEMENT] promql: Add more detail to histogram quantile monotonicity info annotations.

@zenador
Copy link
Contributor Author

zenador commented Dec 11, 2024

Tagging @beorn7 and @krajorama because you reviewed the original PR

@zenador
Copy link
Contributor Author

zenador commented Dec 11, 2024

Test failure seems unrelated to this PR, could be flaky

@beorn7 beorn7 requested review from beorn7 and krajorama December 11, 2024 12:26
@github-actions github-actions bot added the stale label Feb 10, 2025
@zenador zenador force-pushed the enrich-anno-monotonicity branch 2 times, most recently from 8852ccf to 8cf3a0d Compare October 2, 2025 17:18
@github-actions github-actions bot removed the stale label Oct 31, 2025
@beorn7
Copy link
Member

beorn7 commented Dec 18, 2025

I already sneak-peeked a bit here. But let's first get #15577 merged and this rebased before I do the detailed review here.

In the meantime, could you update the PR description to include a changelog line for the user facing changes? (This is a recently added requirement that also has a CI test, which is now red for this PR.)

It looks like this:

```release-notes
[ENHANCEMENT] promql: Improve annotations bla bla bla.
```

@beorn7
Copy link
Member

beorn7 commented Feb 3, 2026

OK, now this needs a rebase, and then I'll review it ASAP.

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
…specific

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
@zenador zenador force-pushed the enrich-anno-monotonicity branch from 8cf3a0d to bf62062 Compare February 3, 2026 14:21
@zenador zenador marked this pull request as ready for review February 3, 2026 14:21
@zenador zenador requested review from a team and roidelapluie as code owners February 3, 2026 14:21
@zenador
Copy link
Contributor Author

zenador commented Feb 3, 2026

@beorn7 rebased!

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
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.

Looks great. Just cosmetic notes about variable naming (which you are free to disagree with).

@beorn7
Copy link
Member

beorn7 commented Feb 4, 2026

Note about the failing test: I'm pretty sure it's unrelated to this PR. I'm trying to re-run it, but it has now failed twice in a row already. :(

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
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.

Great. We are finally done. Thank you very much.

@beorn7 beorn7 merged commit 4321a55 into prometheus:main Feb 5, 2026
32 checks passed
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
…vide more details (prometheus#15578)

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Will Bollock <wbollock@linode.com>
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
…vide more details (prometheus#15578)

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
…vide more details (prometheus#15578)

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
…vide more details (prometheus#15578)

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
…vide more details (prometheus#15578)

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Feb 6, 2026
…vide more details (prometheus#15578)

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
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.

2 participants