]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
prometheus: Silence no data alerts 243/head
authorBoris Ranto <branto@redhat.com>
Fri, 23 Aug 2019 09:35:06 +0000 (11:35 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 23 Aug 2019 09:38:36 +0000 (11:38 +0200)
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 <branto@redhat.com>
dashboards/mgr-prometheus/alert-status.json

index 57ef085c6c6a915f9285600c3933729346ab61d6..f209a87b02c2691f164f2b7d0495ca970d529b81 100644 (file)
@@ -96,7 +96,7 @@
         "frequency": "10s",
         "handler": 1,
         "name": "Overall Ceph Health alert",
-        "noDataState": "no_data",
+        "noDataState": "ok",
         "notifications": [
           {
             "id": 1
         "frequency": "60s",
         "handler": 1,
         "name": "Ceph Error State alert",
-        "noDataState": "no_data",
+        "noDataState": "ok",
         "notifications": [
           {
             "id": 1
         "frequency": "60s",
         "handler": 1,
         "name": "OSD Host Loss Check alert",
-        "noDataState": "no_data",
+        "noDataState": "ok",
         "notifications": [
           {
             "id": 1
         "frequency": "30s",
         "handler": 1,
         "name": "Network Errors alert",
-        "noDataState": "no_data",
+        "noDataState": "ok",
         "notifications": [
           {
             "id": 1
         "frequency": "60s",
         "handler": 1,
         "name": "Pool Capacity alert",
-        "noDataState": "no_data",
+        "noDataState": "ok",
         "notifications": [
           {
             "id": 1
         "frequency": "60s",
         "handler": 1,
         "name": "Cluster Capacity alert",
-        "noDataState": "no_data",
+        "noDataState": "ok",
         "notifications": [
           {
             "id": 1