Commit 1958de72 by Marcus Efraimsson

devenv: update alerting with testdata dashboard

parent 2fb78a50
{ {
"revision": 2, "annotations": {
"title": "Alerting with TestData", "list": [
"tags": [
"grafana-test"
],
"style": "dark",
"timezone": "browser",
"editable": true,
"hideControls": false,
"sharedCrosshair": false,
"rows": [
{ {
"collapse": false, "builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true, "editable": true,
"height": 255.625, "gnetId": null,
"graphTooltip": 0,
"links": [],
"panels": [ "panels": [
{ {
"alert": { "alert": {
...@@ -48,10 +50,18 @@ ...@@ -48,10 +50,18 @@
}, },
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "gdev-testdata", "datasource": "gdev-testdata",
"editable": true, "editable": true,
"error": false, "error": false,
"fill": 1, "fill": 1,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 0
},
"id": 3, "id": 3,
"isNew": true, "isNew": true,
"legend": { "legend": {
...@@ -72,7 +82,7 @@ ...@@ -72,7 +82,7 @@
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [], "seriesOverrides": [],
"span": 6, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
...@@ -86,11 +96,11 @@ ...@@ -86,11 +96,11 @@
], ],
"thresholds": [ "thresholds": [
{ {
"value": 60, "colorMode": "critical",
"op": "gt",
"fill": true, "fill": true,
"line": true, "line": true,
"colorMode": "critical" "op": "gt",
"value": 60
} }
], ],
"timeFrom": null, "timeFrom": null,
...@@ -104,6 +114,7 @@ ...@@ -104,6 +114,7 @@
}, },
"type": "graph", "type": "graph",
"xaxis": { "xaxis": {
"buckets": null,
"mode": "time", "mode": "time",
"name": null, "name": null,
"show": true, "show": true,
...@@ -126,7 +137,11 @@ ...@@ -126,7 +137,11 @@
"min": null, "min": null,
"show": true "show": true
} }
] ],
"yaxis": {
"align": false,
"alignLevel": null
}
}, },
{ {
"alert": { "alert": {
...@@ -153,6 +168,8 @@ ...@@ -153,6 +168,8 @@
} }
], ],
"enabled": true, "enabled": true,
"executionErrorState": "alerting",
"for": "0m",
"frequency": "60s", "frequency": "60s",
"handler": 1, "handler": 1,
"name": "TestData - Always Alerting", "name": "TestData - Always Alerting",
...@@ -161,10 +178,18 @@ ...@@ -161,10 +178,18 @@
}, },
"aliasColors": {}, "aliasColors": {},
"bars": false, "bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "gdev-testdata", "datasource": "gdev-testdata",
"editable": true, "editable": true,
"error": false, "error": false,
"fill": 1, "fill": 1,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 0
},
"id": 4, "id": 4,
"isNew": true, "isNew": true,
"legend": { "legend": {
...@@ -185,7 +210,7 @@ ...@@ -185,7 +210,7 @@
"points": false, "points": false,
"renderer": "flot", "renderer": "flot",
"seriesOverrides": [], "seriesOverrides": [],
"span": 6, "spaceLength": 10,
"stack": false, "stack": false,
"steppedLine": false, "steppedLine": false,
"targets": [ "targets": [
...@@ -217,6 +242,7 @@ ...@@ -217,6 +242,7 @@
}, },
"type": "graph", "type": "graph",
"xaxis": { "xaxis": {
"buckets": null,
"mode": "time", "mode": "time",
"name": null, "name": null,
"show": true, "show": true,
...@@ -239,12 +265,282 @@ ...@@ -239,12 +265,282 @@
"min": null, "min": null,
"show": true "show": true
} }
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"alert": {
"conditions": [
{
"evaluator": {
"params": [
1
],
"type": "gt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"15m",
"now"
] ]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
} }
], ],
"title": "New row" "executionErrorState": "alerting",
"for": "5m",
"frequency": "1m",
"handler": 1,
"name": "TestData - No data",
"noDataState": "no_data",
"notifications": []
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "gdev-testdata",
"editable": true,
"error": false,
"fill": 1,
"gridPos": {
"h": 7,
"w": 12,
"x": 0,
"y": 7
},
"id": 5,
"isNew": true,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"refId": "A",
"scenario": "random_walk",
"scenarioId": "no_data_points",
"stringInput": "",
"target": ""
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"value": 1
} }
], ],
"timeFrom": null,
"timeShift": null,
"title": "No data",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"alert": {
"conditions": [
{
"evaluator": {
"params": [
177
],
"type": "gt"
},
"operator": {
"type": "and"
},
"query": {
"params": [
"A",
"15m",
"now"
]
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query"
}
],
"executionErrorState": "alerting",
"for": "1m",
"frequency": "1m",
"handler": 1,
"name": "TestData - Always Alerting with For",
"noDataState": "no_data",
"notifications": []
},
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "gdev-testdata",
"editable": true,
"error": false,
"fill": 1,
"gridPos": {
"h": 7,
"w": 12,
"x": 12,
"y": 7
},
"id": 6,
"isNew": true,
"legend": {
"avg": false,
"current": false,
"max": false,
"min": false,
"show": true,
"total": false,
"values": false
},
"lines": true,
"linewidth": 2,
"links": [],
"nullPointMode": "connected",
"percentage": false,
"pointradius": 5,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"refId": "A",
"scenario": "random_walk",
"scenarioId": "csv_metric_values",
"stringInput": "200,445,100,150,200,220,190",
"target": ""
}
],
"thresholds": [
{
"colorMode": "critical",
"fill": true,
"line": true,
"op": "gt",
"value": 177
}
],
"timeFrom": null,
"timeShift": null,
"title": "Always Alerting with For",
"tooltip": {
"msResolution": false,
"shared": true,
"sort": 0,
"value_type": "cumulative"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": "0",
"show": true
},
{
"format": "short",
"label": "",
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"revision": 2,
"schemaVersion": 16,
"style": "dark",
"tags": [
"grafana-test"
],
"templating": {
"list": []
},
"time": { "time": {
"from": "now-6h", "from": "now-6h",
"to": "now" "to": "now"
...@@ -274,14 +570,8 @@ ...@@ -274,14 +570,8 @@
"30d" "30d"
] ]
}, },
"templating": { "timezone": "browser",
"list": [] "title": "Alerting with TestData",
}, "uid": "7MeksYbmk",
"annotations": { "version": 1
"list": []
},
"schemaVersion": 13,
"version": 4,
"links": [],
"gnetId": null
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment