feat(testdata): added alert dashboard

This commit is contained in:
Torkel Ödegaard
2016-09-28 10:44:21 +02:00
parent a4648607bb
commit 68370ba2bc
2 changed files with 21 additions and 15 deletions

View File

@@ -1,4 +1,5 @@
{ {
"revision": 2,
"title": "TestData - Alerts", "title": "TestData - Alerts",
"tags": [ "tags": [
"grafana-test" "grafana-test"
@@ -20,7 +21,7 @@
{ {
"evaluator": { "evaluator": {
"params": [ "params": [
111 60
], ],
"type": "gt" "type": "gt"
}, },
@@ -41,7 +42,7 @@
"enabled": true, "enabled": true,
"frequency": "60s", "frequency": "60s",
"handler": 1, "handler": 1,
"name": "Should always be green", "name": "TestData - Always OK",
"noDataState": "no_data", "noDataState": "no_data",
"notifications": [] "notifications": []
}, },
@@ -79,17 +80,17 @@
"refId": "A", "refId": "A",
"scenario": "random_walk", "scenario": "random_walk",
"scenarioId": "csv_metric_values", "scenarioId": "csv_metric_values",
"target": "", "stringInput": "1,20,90,30,5,0",
"stringInput": "1,20,90,30,5,0" "target": ""
} }
], ],
"thresholds": [ "thresholds": [
{ {
"colorMode": "critical", "value": 60,
"op": "gt",
"fill": true, "fill": true,
"line": true, "line": true,
"op": "gt", "colorMode": "critical"
"value": 111
} }
], ],
"timeFrom": null, "timeFrom": null,
@@ -154,7 +155,7 @@
"enabled": true, "enabled": true,
"frequency": "60s", "frequency": "60s",
"handler": 1, "handler": 1,
"name": "Always Alerting", "name": "TestData - Always Alerting",
"noDataState": "no_data", "noDataState": "no_data",
"notifications": [] "notifications": []
}, },
@@ -192,17 +193,17 @@
"refId": "A", "refId": "A",
"scenario": "random_walk", "scenario": "random_walk",
"scenarioId": "csv_metric_values", "scenarioId": "csv_metric_values",
"target": "", "stringInput": "200,445,100,150,200,220,190",
"stringInput": "200,445,100,150,200,220,190" "target": ""
} }
], ],
"thresholds": [ "thresholds": [
{ {
"value": 177, "colorMode": "critical",
"op": "gt",
"fill": true, "fill": true,
"line": true, "line": true,
"colorMode": "critical" "op": "gt",
"value": 177
} }
], ],
"timeFrom": null, "timeFrom": null,
@@ -280,7 +281,7 @@
"list": [] "list": []
}, },
"schemaVersion": 13, "schemaVersion": 13,
"version": 10, "version": 4,
"links": [], "links": [],
"gnetId": null "gnetId": null
} }

View File

@@ -9,7 +9,7 @@
"name": "Grafana Project", "name": "Grafana Project",
"url": "http://grafana.org" "url": "http://grafana.org"
}, },
"version": "1.0.7", "version": "1.0.13",
"updated": "2016-09-26" "updated": "2016-09-26"
}, },
@@ -18,6 +18,11 @@
"type": "dashboard", "type": "dashboard",
"name": "TestData - Graph Last 1h", "name": "TestData - Graph Last 1h",
"path": "dashboards/graph_last_1h.json" "path": "dashboards/graph_last_1h.json"
},
{
"type": "dashboard",
"name": "TestData - Alerts",
"path": "dashboards/alerts.json"
} }
], ],