Bug #80856
closedmonitoring: CephPoolGrowthWarning uses 95 for a fractional metric
0%
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.
MB Updated by Michail Basov 2 months ago
- Pull request ID set to 72067
AS Updated by Aashish Sharma 2 months ago
- Status changed from New to Pending Backport
- Backport set to umbrella,tentacle
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #81101: umbrella: monitoring: CephPoolGrowthWarning uses 95 for a fractional metric added
UB Updated by Upkeep Bot 2 months ago
- Copied to Backport #81103: tentacle: monitoring: CephPoolGrowthWarning uses 95 for a fractional metric added
UB Updated by Upkeep Bot 2 months ago
- 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