Skip to content

Commit b3a01c1

Browse files
committed
Prevent Ceph PgsUnclean alert because of backfill
A Ceph cluster is often busy backfilling, such as when using the Ceph balancer or adding new OSDs. It is not helpful to raise the PgsUnclean alert because of this activity.
1 parent b2be632 commit b3a01c1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

etc/kayobe/kolla/config/prometheus/ceph.rules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ groups:
117117
requests.
118118

119119
- alert: PgsUnclean
120-
expr: ceph_pool_metadata * on(pool_id,instance) group_left() (ceph_pg_total - ceph_pg_clean) > 0
120+
expr: ceph_pool_metadata * on(pool_id,instance) group_left() (ceph_pg_total - ceph_pg_clean - ceph_pg_backfilling - ceph_pg_backfill_wait) > 0
121121
for: 15m
122122
labels:
123123
severity: warning
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Prevents raising a Ceph ``PgsUnclean`` alert because of backfilling which
5+
can frequently happen because of normal rebalancing activities, such as use
6+
of the Ceph balancer or OSD addition.

0 commit comments

Comments
 (0)