Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 f80686774 -> 3c8b52b11


AMBARI-15290. Add a WEB alert for Grafana.(vbrodetskyi)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/3c8b52b1
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/3c8b52b1
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/3c8b52b1

Branch: refs/heads/branch-2.2
Commit: 3c8b52b116734c777c670c9c9098192dcf726659
Parents: f806867
Author: Vitaly Brodetskyi <[email protected]>
Authored: Fri Mar 4 12:12:41 2016 +0200
Committer: Vitaly Brodetskyi <[email protected]>
Committed: Fri Mar 4 12:12:41 2016 +0200

----------------------------------------------------------------------
 .../AMBARI_METRICS/0.1.0/alerts.json            | 31 ++++++++++++++++++++
 1 file changed, 31 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/3c8b52b1/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/alerts.json
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/alerts.json
 
b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/alerts.json
index 2f5246b..1da4e24 100644
--- 
a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/alerts.json
+++ 
b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/alerts.json
@@ -153,6 +153,37 @@
           "path": 
"AMBARI_METRICS/0.1.0/package/alerts/alert_ambari_metrics_monitor.py"
         }
       }
+    ],
+    "METRICS_GRAFANA": [
+      {
+        "name": "grafana_webui",
+        "label": "Grafana Web UI",
+        "description": "This host-level alert is triggered if the Grafana Web 
UI is unreachable.",
+        "interval": 1,
+        "scope": "ANY",
+        "source": {
+          "type": "WEB",
+          "uri": {
+              "http": "{{ams-grafana-ini/port}}",
+              "https": "{{ams-grafana-ini/port}}",
+              "https_property": "{{ams-grafana-ini/protocol}}",
+              "https_property_value": "https",
+              "connection_timeout": 5.0,
+              "default_port": 3000
+          },
+          "reporting": {
+              "ok": {
+                  "text": "HTTP {0} response in {2:.3f}s"
+              },
+              "warning":{
+                  "text": "HTTP {0} response from {1} in {2:.3f}s ({3})"
+              },
+              "critical": {
+                  "text": "Connection failed to {1} ({3})"
+              }
+          }
+        }
+      }
     ]
   }
 }

Reply via email to