ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-15290. Add a WEB alert for Grafana.(vbrodetskyi)
Date Fri, 04 Mar 2016 10:25:06 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 75555dc56 -> 0d0a3d340


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/0d0a3d34
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0d0a3d34
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0d0a3d34

Branch: refs/heads/trunk
Commit: 0d0a3d3406d0c2d03eb6bb998d62679469589426
Parents: 75555dc
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Fri Mar 4 12:15:43 2016 +0200
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Fri Mar 4 12:15:43 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/0d0a3d34/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})"
+              }
+          }
+        }
+      }
     ]
   }
 }


Mime
View raw message