Skip to content

Commit 68370ba

Browse files
committed
feat(testdata): added alert dashboard
1 parent a464860 commit 68370ba

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

public/app/plugins/app/testdata/dashboards/alerts.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"revision": 2,
23
"title": "TestData - Alerts",
34
"tags": [
45
"grafana-test"
@@ -20,7 +21,7 @@
2021
{
2122
"evaluator": {
2223
"params": [
23-
111
24+
60
2425
],
2526
"type": "gt"
2627
},
@@ -41,7 +42,7 @@
4142
"enabled": true,
4243
"frequency": "60s",
4344
"handler": 1,
44-
"name": "Should always be green",
45+
"name": "TestData - Always OK",
4546
"noDataState": "no_data",
4647
"notifications": []
4748
},
@@ -79,17 +80,17 @@
7980
"refId": "A",
8081
"scenario": "random_walk",
8182
"scenarioId": "csv_metric_values",
82-
"target": "",
83-
"stringInput": "1,20,90,30,5,0"
83+
"stringInput": "1,20,90,30,5,0",
84+
"target": ""
8485
}
8586
],
8687
"thresholds": [
8788
{
88-
"colorMode": "critical",
89+
"value": 60,
90+
"op": "gt",
8991
"fill": true,
9092
"line": true,
91-
"op": "gt",
92-
"value": 111
93+
"colorMode": "critical"
9394
}
9495
],
9596
"timeFrom": null,
@@ -154,7 +155,7 @@
154155
"enabled": true,
155156
"frequency": "60s",
156157
"handler": 1,
157-
"name": "Always Alerting",
158+
"name": "TestData - Always Alerting",
158159
"noDataState": "no_data",
159160
"notifications": []
160161
},
@@ -192,17 +193,17 @@
192193
"refId": "A",
193194
"scenario": "random_walk",
194195
"scenarioId": "csv_metric_values",
195-
"target": "",
196-
"stringInput": "200,445,100,150,200,220,190"
196+
"stringInput": "200,445,100,150,200,220,190",
197+
"target": ""
197198
}
198199
],
199200
"thresholds": [
200201
{
201-
"value": 177,
202-
"op": "gt",
202+
"colorMode": "critical",
203203
"fill": true,
204204
"line": true,
205-
"colorMode": "critical"
205+
"op": "gt",
206+
"value": 177
206207
}
207208
],
208209
"timeFrom": null,
@@ -280,7 +281,7 @@
280281
"list": []
281282
},
282283
"schemaVersion": 13,
283-
"version": 10,
284+
"version": 4,
284285
"links": [],
285286
"gnetId": null
286287
}

public/app/plugins/app/testdata/plugin.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"name": "Grafana Project",
1010
"url": "http://grafana.org"
1111
},
12-
"version": "1.0.7",
12+
"version": "1.0.13",
1313
"updated": "2016-09-26"
1414
},
1515

@@ -18,6 +18,11 @@
1818
"type": "dashboard",
1919
"name": "TestData - Graph Last 1h",
2020
"path": "dashboards/graph_last_1h.json"
21+
},
22+
{
23+
"type": "dashboard",
24+
"name": "TestData - Alerts",
25+
"path": "dashboards/alerts.json"
2126
}
2227
],
2328

0 commit comments

Comments
 (0)