From 86cfb8038246f5754a8106027595a9d7527f67af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Thu, 15 Sep 2016 11:10:35 +0000 Subject: [PATCH] Add alarm annotations in Grafana dashboard This commit adds alarm annotations to the Grafana System dashboard. Annotations are displayed when the node status changes (e.g. OKAY -> WARN). Change-Id: I1eca90eb574ba3e985566709cc8cc353209da7d2 --- docker/grafana/dashboards/system.json | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/docker/grafana/dashboards/system.json b/docker/grafana/dashboards/system.json index 680cdd3..00e7e5b 100644 --- a/docker/grafana/dashboards/system.json +++ b/docker/grafana/dashboards/system.json @@ -1,7 +1,18 @@ { "dashboard": { "annotations": { - "list": [] + "list": [ + { + "datasource": "CCP InfluxDB", + "enable": true, + "iconColor": "rgba(255, 96, 96, 1)", + "name": "Status", + "query": "select title,tags,text from annotation where hostname = '$hostname'", + "tagsColumn": "tags", + "textColumn": "text", + "titleColumn": "title" + } + ] }, "editable": true, "hideControls": false, @@ -3079,6 +3090,7 @@ "rgba(50, 172, 45, 0.97)" ], "datasource": null, + "decimals": 0, "editable": true, "error": false, "format": "h", @@ -3168,8 +3180,7 @@ "value": "null" } ], - "valueName": "current", - "decimals": 0 + "valueName": "current" }, { "aliasColors": {}, @@ -4047,6 +4058,6 @@ }, "timezone": "browser", "title": "System", - "version": 5 + "version": 6 } }