]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/prometheus: Fix 'pool filling up' with >50% usage 39076/head
authorDaniël Vos <danielvos@outlook.com>
Wed, 25 Nov 2020 11:05:53 +0000 (12:05 +0100)
committerKonstantin Shalygin <k0ste@k0ste.ru>
Tue, 26 Jan 2021 10:14:09 +0000 (17:14 +0700)
Fixes: https://tracker.ceph.com/issues/48354
Signed-off-by: Daniël Vos <danielvos@outlook.com>
(cherry picked from commit 79568d51c6ba1a064e31f0591a922ce45141a78e)

monitoring/prometheus/alerts/ceph_default_alerts.yml

index 74907fd024e47db549b1d2b69f3c9950f3b0b8bc..31d294518da298f17bc5f7c946f673cf25eec4dd 100644 (file)
@@ -215,8 +215,8 @@ groups:
       - alert: pool filling up
         expr: |
           (
-            predict_linear(ceph_pool_stored[2d], 3600 * 24 * 5) >=
-            ceph_pool_max_avail
+            predict_linear(ceph_pool_stored[2d], 3600 * 24 * 5)
+            >= ceph_pool_stored + ceph_pool_max_avail
           ) * on(pool_id) group_left(name) ceph_pool_metadata
         labels:
           severity: warning