Skip to content

monitoring: fix pool growth alert threshold - #72067

Merged
aaSharma14 merged 1 commit into
ceph:mainfrom
banlor:fix/pool-growth-threshold
Sep 29, 2026
Merged

aaSharma14 merged 1 commit into
ceph:mainfrom
banlor:fix/pool-growth-threshold

Conversation

@banlor

@banlor banlor commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

CephPoolGrowthWarning compares a fractional metric's forecast with 95 instead of 0.95. This fixes the Jsonnet source and generated rules and replaces percentage-scale test input with fractional values, including flat and slowly growing controls.

Fixes: https://tracker.ceph.com/issues/80856

The focused promtool regression and alert validator pass. The full alert suite still has 12 unrelated failures reproduced on the clean base; this is not a full-suite pass.

Found while studying alert rules across projects; research results are published only in aggregate. AI tools assisted with the patch, tests, and review.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

ceph_pool_percent_used reports a fraction, but CephPoolGrowthWarning
compares its forecast with 95. Use 0.95 in the Jsonnet source and
generated rules so the threshold matches the metric's scale.

Replace percentage-scale test data with fractional values and check
fast-growing, slow-growing, and constant pool usage.

Fixes: https://tracker.ceph.com/issues/80856
Signed-off-by: Mikhail Basov <[email protected]>
@github-actions

Copy link
Copy Markdown

Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR ci-approved to allow Jenkins CI jobs to run.

@afreen23 afreen23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@cloudbehl

Copy link
Copy Markdown
Contributor

@aaSharma14 can you do a round of testing.

@aaSharma14 aaSharma14 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested locally, works as expected.

@aaSharma14
aaSharma14 merged commit fa17832 into ceph:main Sep 29, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants