Project

General

Profile

Actions

Bug #80856

closed
MB AS

monitoring: CephPoolGrowthWarning uses 95 for a fractional metric

Bug #80856: monitoring: CephPoolGrowthWarning uses 95 for a fractional metric

Added by Michail Basov 2 months ago. Updated 2 months ago.

Status:
Backporting
Priority:
Normal
Category:
Monitoring
Target version:
-
Due date:
% Done:

0%

Source:
Community (dev)
Backport:
umbrella,tentacle
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Fixed In:
v21.3.0-3757-gfa17832a8d
Released In:
Upkeep Timestamp:
2026-09-29T09:32:48+00:00

Description

CephPoolGrowthWarning compares predict_linear(ceph_pool_percent_used[2d], 3600 * 24 * 5) with 95, but Ceph exports this metric as a fraction. A pool growing towards capacity therefore misses the intended warning; the threshold should be 0.95.

Reproduced with synthetic promtool series against the v20.2.4 rule. A growing pool fails the expected-alert test with 95 and passes with 0.95; flat and slowly growing pools remain negative controls. This does not claim that predict_linear can never reach 95, since its forecast is unbounded.

Sources:
https://github.com/ceph/ceph/blob/v20.2.4/src/mon/PGMap.cc#L909-L943
https://github.com/ceph/ceph/blob/v20.2.4/src/pybind/mgr/prometheus/module.py#L1205-L1219
https://github.com/ceph/ceph/blob/7f793731f1b39eb4f465e960113d2363c311b964/monitoring/ceph-mixin/prometheus_alerts.yml#L560-L569

The proposed patch changes the Jsonnet source and generated YAML and replaces percentage-scale test input with fractional values, including negative controls. This is separate from the manager-failover join problem in PR #68621.

Found while studying alert rules across projects; research results will be published only in aggregate.


Related issues 2 (2 open — 0 closed)

Copied to Dashboard - Backport #81101: umbrella: monitoring: CephPoolGrowthWarning uses 95 for a fractional metricNewAashish Sharma

Actions
Copied to Dashboard - Backport #81103: tentacle: monitoring: CephPoolGrowthWarning uses 95 for a fractional metricNewAashish Sharma

Actions

MB Updated by Michail Basov 2 months ago Actions #1

  • Pull request ID set to 72067

AS Updated by Aashish Sharma 2 months ago Actions #2

  • Status changed from New to Pending Backport
  • Backport set to umbrella,tentacle

UB Updated by Upkeep Bot 2 months ago Actions #3

  • Copied to Backport #81101: umbrella: monitoring: CephPoolGrowthWarning uses 95 for a fractional metric added

UB Updated by Upkeep Bot 2 months ago Actions #4

  • Copied to Backport #81103: tentacle: monitoring: CephPoolGrowthWarning uses 95 for a fractional metric added

UB Updated by Upkeep Bot 2 months ago Actions #5

  • Status changed from Pending Backport to Backporting
  • Merge Commit set to fa17832a8dc1b7c73c5a312fed35d7cb2defe35b
  • Fixed In set to v21.3.0-3757-gfa17832a8d
  • Upkeep Timestamp set to 2026-09-29T09:32:48+00:00
Actions

Also available in: PDF Atom