From 44849c024b65e02e406e861048efaecade000803 Mon Sep 17 00:00:00 2001 From: Boris Ranto Date: Fri, 23 Aug 2019 11:35:06 +0200 Subject: [PATCH] prometheus: Silence no data alerts Currently, we are sending an e-mail to the admin when the query returns no data. This can get annoying as it does not mean that the alert has actually been hit. We should fix this and alert only if the query says we should. Resolves: https://bugzilla.redhat.com/1663289 Signed-off-by: Boris Ranto --- dashboards/mgr-prometheus/alert-status.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dashboards/mgr-prometheus/alert-status.json b/dashboards/mgr-prometheus/alert-status.json index 57ef085..f209a87 100644 --- a/dashboards/mgr-prometheus/alert-status.json +++ b/dashboards/mgr-prometheus/alert-status.json @@ -96,7 +96,7 @@ "frequency": "10s", "handler": 1, "name": "Overall Ceph Health alert", - "noDataState": "no_data", + "noDataState": "ok", "notifications": [ { "id": 1 @@ -231,7 +231,7 @@ "frequency": "60s", "handler": 1, "name": "Ceph Error State alert", - "noDataState": "no_data", + "noDataState": "ok", "notifications": [ { "id": 1 @@ -898,7 +898,7 @@ "frequency": "60s", "handler": 1, "name": "OSD Host Loss Check alert", - "noDataState": "no_data", + "noDataState": "ok", "notifications": [ { "id": 1 @@ -1162,7 +1162,7 @@ "frequency": "30s", "handler": 1, "name": "Network Errors alert", - "noDataState": "no_data", + "noDataState": "ok", "notifications": [ { "id": 1 @@ -1291,7 +1291,7 @@ "frequency": "60s", "handler": 1, "name": "Pool Capacity alert", - "noDataState": "no_data", + "noDataState": "ok", "notifications": [ { "id": 1 @@ -1555,7 +1555,7 @@ "frequency": "60s", "handler": 1, "name": "Cluster Capacity alert", - "noDataState": "no_data", + "noDataState": "ok", "notifications": [ { "id": 1 -- 2.47.3