Return-Path: X-Original-To: apmail-ambari-commits-archive@www.apache.org Delivered-To: apmail-ambari-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9252F189B2 for ; Fri, 4 Mar 2016 10:25:06 +0000 (UTC) Received: (qmail 60120 invoked by uid 500); 4 Mar 2016 10:25:06 -0000 Delivered-To: apmail-ambari-commits-archive@ambari.apache.org Received: (qmail 60088 invoked by uid 500); 4 Mar 2016 10:25:06 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 60079 invoked by uid 99); 4 Mar 2016 10:25:06 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2016 10:25:06 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5C7BFDFC6C; Fri, 4 Mar 2016 10:25:06 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vbrodetskyi@apache.org To: commits@ambari.apache.org Message-Id: <36a18b1b6b1943aebd8791a722e204a4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ambari git commit: AMBARI-15290. Add a WEB alert for Grafana.(vbrodetskyi) Date: Fri, 4 Mar 2016 10:25:06 +0000 (UTC) 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 Authored: Fri Mar 4 12:15:43 2016 +0200 Committer: Vitaly Brodetskyi 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})" + } + } + } + } ] } }