|
|
@@ -22,7 +22,7 @@
|
|
|
"conditions": [
|
|
|
{
|
|
|
"evaluator": {
|
|
|
- "params": [60],
|
|
|
+ "params": [177],
|
|
|
"type": "gt"
|
|
|
},
|
|
|
"query": {
|
|
|
@@ -36,9 +36,11 @@
|
|
|
}
|
|
|
],
|
|
|
"enabled": true,
|
|
|
+ "executionErrorState": "alerting",
|
|
|
+ "for": "0m",
|
|
|
"frequency": "60s",
|
|
|
"handler": 1,
|
|
|
- "name": "TestData - Always OK",
|
|
|
+ "name": "TestData - Always Alerting",
|
|
|
"noDataState": "no_data",
|
|
|
"notifications": []
|
|
|
},
|
|
|
@@ -52,11 +54,11 @@
|
|
|
"fill": 1,
|
|
|
"gridPos": {
|
|
|
"h": 7,
|
|
|
- "w": 12,
|
|
|
+ "w": 10,
|
|
|
"x": 0,
|
|
|
"y": 0
|
|
|
},
|
|
|
- "id": 3,
|
|
|
+ "id": 4,
|
|
|
"isNew": true,
|
|
|
"legend": {
|
|
|
"avg": false,
|
|
|
@@ -84,7 +86,7 @@
|
|
|
"refId": "A",
|
|
|
"scenario": "random_walk",
|
|
|
"scenarioId": "csv_metric_values",
|
|
|
- "stringInput": "1,20,90,30,5,0",
|
|
|
+ "stringInput": "200,445,100,150,200,220,190",
|
|
|
"target": ""
|
|
|
}
|
|
|
],
|
|
|
@@ -94,13 +96,13 @@
|
|
|
"fill": true,
|
|
|
"line": true,
|
|
|
"op": "gt",
|
|
|
- "value": 60
|
|
|
+ "value": 177
|
|
|
}
|
|
|
],
|
|
|
"timeFrom": null,
|
|
|
"timeRegions": [],
|
|
|
"timeShift": null,
|
|
|
- "title": "Always OK",
|
|
|
+ "title": "Always Alerting",
|
|
|
"tooltip": {
|
|
|
"msResolution": false,
|
|
|
"shared": true,
|
|
|
@@ -120,13 +122,13 @@
|
|
|
"format": "short",
|
|
|
"label": "",
|
|
|
"logBase": 1,
|
|
|
- "max": "125",
|
|
|
+ "max": null,
|
|
|
"min": "0",
|
|
|
"show": true
|
|
|
},
|
|
|
{
|
|
|
"format": "short",
|
|
|
- "label": null,
|
|
|
+ "label": "",
|
|
|
"logBase": 1,
|
|
|
"max": null,
|
|
|
"min": null,
|
|
|
@@ -143,9 +145,12 @@
|
|
|
"conditions": [
|
|
|
{
|
|
|
"evaluator": {
|
|
|
- "params": [177],
|
|
|
+ "params": [100],
|
|
|
"type": "gt"
|
|
|
},
|
|
|
+ "operator": {
|
|
|
+ "type": "and"
|
|
|
+ },
|
|
|
"query": {
|
|
|
"params": ["A", "5m", "now"]
|
|
|
},
|
|
|
@@ -156,12 +161,11 @@
|
|
|
"type": "query"
|
|
|
}
|
|
|
],
|
|
|
- "enabled": true,
|
|
|
"executionErrorState": "alerting",
|
|
|
- "for": "0m",
|
|
|
- "frequency": "60s",
|
|
|
+ "for": "900000h",
|
|
|
+ "frequency": "1m",
|
|
|
"handler": 1,
|
|
|
- "name": "TestData - Always Alerting",
|
|
|
+ "name": "Always Pending",
|
|
|
"noDataState": "no_data",
|
|
|
"notifications": []
|
|
|
},
|
|
|
@@ -175,11 +179,11 @@
|
|
|
"fill": 1,
|
|
|
"gridPos": {
|
|
|
"h": 7,
|
|
|
- "w": 12,
|
|
|
- "x": 12,
|
|
|
+ "w": 10,
|
|
|
+ "x": 10,
|
|
|
"y": 0
|
|
|
},
|
|
|
- "id": 4,
|
|
|
+ "id": 7,
|
|
|
"isNew": true,
|
|
|
"legend": {
|
|
|
"avg": false,
|
|
|
@@ -217,13 +221,13 @@
|
|
|
"fill": true,
|
|
|
"line": true,
|
|
|
"op": "gt",
|
|
|
- "value": 177
|
|
|
+ "value": 100
|
|
|
}
|
|
|
],
|
|
|
"timeFrom": null,
|
|
|
"timeRegions": [],
|
|
|
"timeShift": null,
|
|
|
- "title": "Always Alerting",
|
|
|
+ "title": "Always Alerting with For",
|
|
|
"tooltip": {
|
|
|
"msResolution": false,
|
|
|
"shared": true,
|
|
|
@@ -261,12 +265,35 @@
|
|
|
"alignLevel": null
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ "dashboardFilter": "",
|
|
|
+ "dashboardTags": [],
|
|
|
+ "folderId": null,
|
|
|
+ "gridPos": {
|
|
|
+ "h": 20,
|
|
|
+ "w": 4,
|
|
|
+ "x": 20,
|
|
|
+ "y": 0
|
|
|
+ },
|
|
|
+ "id": 9,
|
|
|
+ "limit": 10,
|
|
|
+ "links": [],
|
|
|
+ "nameFilter": "$namefilter",
|
|
|
+ "onlyAlertsOnDashboard": false,
|
|
|
+ "show": "current",
|
|
|
+ "sortOrder": 1,
|
|
|
+ "stateFilter": [],
|
|
|
+ "timeFrom": null,
|
|
|
+ "timeShift": null,
|
|
|
+ "title": "Alert list",
|
|
|
+ "type": "alertlist"
|
|
|
+ },
|
|
|
{
|
|
|
"alert": {
|
|
|
"conditions": [
|
|
|
{
|
|
|
"evaluator": {
|
|
|
- "params": [1],
|
|
|
+ "params": [177],
|
|
|
"type": "gt"
|
|
|
},
|
|
|
"operator": {
|
|
|
@@ -283,10 +310,10 @@
|
|
|
}
|
|
|
],
|
|
|
"executionErrorState": "alerting",
|
|
|
- "for": "5m",
|
|
|
+ "for": "1m",
|
|
|
"frequency": "1m",
|
|
|
"handler": 1,
|
|
|
- "name": "TestData - No data",
|
|
|
+ "name": "TestData - Always Pending",
|
|
|
"noDataState": "no_data",
|
|
|
"notifications": []
|
|
|
},
|
|
|
@@ -299,12 +326,12 @@
|
|
|
"error": false,
|
|
|
"fill": 1,
|
|
|
"gridPos": {
|
|
|
- "h": 7,
|
|
|
- "w": 12,
|
|
|
+ "h": 6,
|
|
|
+ "w": 10,
|
|
|
"x": 0,
|
|
|
"y": 7
|
|
|
},
|
|
|
- "id": 5,
|
|
|
+ "id": 6,
|
|
|
"isNew": true,
|
|
|
"legend": {
|
|
|
"avg": false,
|
|
|
@@ -331,8 +358,8 @@
|
|
|
{
|
|
|
"refId": "A",
|
|
|
"scenario": "random_walk",
|
|
|
- "scenarioId": "no_data_points",
|
|
|
- "stringInput": "",
|
|
|
+ "scenarioId": "csv_metric_values",
|
|
|
+ "stringInput": "200,445,100,150,200,220,190",
|
|
|
"target": ""
|
|
|
}
|
|
|
],
|
|
|
@@ -342,13 +369,13 @@
|
|
|
"fill": true,
|
|
|
"line": true,
|
|
|
"op": "gt",
|
|
|
- "value": 1
|
|
|
+ "value": 177
|
|
|
}
|
|
|
],
|
|
|
"timeFrom": null,
|
|
|
"timeRegions": [],
|
|
|
"timeShift": null,
|
|
|
- "title": "No data",
|
|
|
+ "title": "Always Alerting with For",
|
|
|
"tooltip": {
|
|
|
"msResolution": false,
|
|
|
"shared": true,
|
|
|
@@ -391,14 +418,11 @@
|
|
|
"conditions": [
|
|
|
{
|
|
|
"evaluator": {
|
|
|
- "params": [177],
|
|
|
+ "params": [60],
|
|
|
"type": "gt"
|
|
|
},
|
|
|
- "operator": {
|
|
|
- "type": "and"
|
|
|
- },
|
|
|
"query": {
|
|
|
- "params": ["A", "15m", "now"]
|
|
|
+ "params": ["A", "5m", "now"]
|
|
|
},
|
|
|
"reducer": {
|
|
|
"params": [],
|
|
|
@@ -407,11 +431,10 @@
|
|
|
"type": "query"
|
|
|
}
|
|
|
],
|
|
|
- "executionErrorState": "alerting",
|
|
|
- "for": "1m",
|
|
|
- "frequency": "1m",
|
|
|
+ "enabled": true,
|
|
|
+ "frequency": "60s",
|
|
|
"handler": 1,
|
|
|
- "name": "TestData - Always Pending",
|
|
|
+ "name": "TestData - Always OK",
|
|
|
"noDataState": "no_data",
|
|
|
"notifications": []
|
|
|
},
|
|
|
@@ -424,12 +447,12 @@
|
|
|
"error": false,
|
|
|
"fill": 1,
|
|
|
"gridPos": {
|
|
|
- "h": 7,
|
|
|
- "w": 12,
|
|
|
- "x": 12,
|
|
|
+ "h": 6,
|
|
|
+ "w": 10,
|
|
|
+ "x": 10,
|
|
|
"y": 7
|
|
|
},
|
|
|
- "id": 6,
|
|
|
+ "id": 3,
|
|
|
"isNew": true,
|
|
|
"legend": {
|
|
|
"avg": false,
|
|
|
@@ -457,7 +480,7 @@
|
|
|
"refId": "A",
|
|
|
"scenario": "random_walk",
|
|
|
"scenarioId": "csv_metric_values",
|
|
|
- "stringInput": "200,445,100,150,200,220,190",
|
|
|
+ "stringInput": "1,20,90,30,5,0",
|
|
|
"target": ""
|
|
|
}
|
|
|
],
|
|
|
@@ -467,13 +490,13 @@
|
|
|
"fill": true,
|
|
|
"line": true,
|
|
|
"op": "gt",
|
|
|
- "value": 177
|
|
|
+ "value": 60
|
|
|
}
|
|
|
],
|
|
|
"timeFrom": null,
|
|
|
"timeRegions": [],
|
|
|
"timeShift": null,
|
|
|
- "title": "Always Alerting with For",
|
|
|
+ "title": "Always OK",
|
|
|
"tooltip": {
|
|
|
"msResolution": false,
|
|
|
"shared": true,
|
|
|
@@ -493,13 +516,13 @@
|
|
|
"format": "short",
|
|
|
"label": "",
|
|
|
"logBase": 1,
|
|
|
- "max": null,
|
|
|
+ "max": "125",
|
|
|
"min": "0",
|
|
|
"show": true
|
|
|
},
|
|
|
{
|
|
|
"format": "short",
|
|
|
- "label": "",
|
|
|
+ "label": null,
|
|
|
"logBase": 1,
|
|
|
"max": null,
|
|
|
"min": null,
|
|
|
@@ -516,14 +539,14 @@
|
|
|
"conditions": [
|
|
|
{
|
|
|
"evaluator": {
|
|
|
- "params": [100],
|
|
|
+ "params": [1],
|
|
|
"type": "gt"
|
|
|
},
|
|
|
"operator": {
|
|
|
"type": "and"
|
|
|
},
|
|
|
"query": {
|
|
|
- "params": ["A", "5m", "now"]
|
|
|
+ "params": ["A", "15m", "now"]
|
|
|
},
|
|
|
"reducer": {
|
|
|
"params": [],
|
|
|
@@ -533,10 +556,10 @@
|
|
|
}
|
|
|
],
|
|
|
"executionErrorState": "alerting",
|
|
|
- "for": "900000h",
|
|
|
+ "for": "5m",
|
|
|
"frequency": "1m",
|
|
|
"handler": 1,
|
|
|
- "name": "Always Pending",
|
|
|
+ "name": "TestData - No data",
|
|
|
"noDataState": "no_data",
|
|
|
"notifications": []
|
|
|
},
|
|
|
@@ -550,11 +573,11 @@
|
|
|
"fill": 1,
|
|
|
"gridPos": {
|
|
|
"h": 7,
|
|
|
- "w": 12,
|
|
|
- "x": 12,
|
|
|
- "y": 14
|
|
|
+ "w": 10,
|
|
|
+ "x": 0,
|
|
|
+ "y": 13
|
|
|
},
|
|
|
- "id": 7,
|
|
|
+ "id": 5,
|
|
|
"isNew": true,
|
|
|
"legend": {
|
|
|
"avg": false,
|
|
|
@@ -581,8 +604,8 @@
|
|
|
{
|
|
|
"refId": "A",
|
|
|
"scenario": "random_walk",
|
|
|
- "scenarioId": "csv_metric_values",
|
|
|
- "stringInput": "200,445,100,150,200,220,190",
|
|
|
+ "scenarioId": "no_data_points",
|
|
|
+ "stringInput": "",
|
|
|
"target": ""
|
|
|
}
|
|
|
],
|
|
|
@@ -592,13 +615,13 @@
|
|
|
"fill": true,
|
|
|
"line": true,
|
|
|
"op": "gt",
|
|
|
- "value": 100
|
|
|
+ "value": 1
|
|
|
}
|
|
|
],
|
|
|
"timeFrom": null,
|
|
|
"timeRegions": [],
|
|
|
"timeShift": null,
|
|
|
- "title": "Always Alerting with For",
|
|
|
+ "title": "No data",
|
|
|
"tooltip": {
|
|
|
"msResolution": false,
|
|
|
"shared": true,
|
|
|
@@ -638,11 +661,44 @@
|
|
|
}
|
|
|
],
|
|
|
"revision": 2,
|
|
|
- "schemaVersion": 16,
|
|
|
+ "schemaVersion": 18,
|
|
|
"style": "dark",
|
|
|
"tags": ["gdev", "alerting"],
|
|
|
"templating": {
|
|
|
- "list": []
|
|
|
+ "list": [
|
|
|
+ {
|
|
|
+ "allValue": null,
|
|
|
+ "current": {
|
|
|
+ "text": "TestData",
|
|
|
+ "value": "TestData"
|
|
|
+ },
|
|
|
+ "hide": 0,
|
|
|
+ "includeAll": false,
|
|
|
+ "label": "alert name filter",
|
|
|
+ "multi": false,
|
|
|
+ "name": "namefilter",
|
|
|
+ "options": [
|
|
|
+ {
|
|
|
+ "selected": true,
|
|
|
+ "text": "TestData",
|
|
|
+ "value": "TestData"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "selected": false,
|
|
|
+ "text": "Prometheus",
|
|
|
+ "value": "Prometheus"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "selected": false,
|
|
|
+ "text": "Graphite",
|
|
|
+ "value": "Graphite"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "query": "TestData,Prometheus,Graphite",
|
|
|
+ "skipUrlSync": false,
|
|
|
+ "type": "custom"
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
"time": {
|
|
|
"from": "now-6h",
|
|
|
@@ -655,5 +711,5 @@
|
|
|
"timezone": "browser",
|
|
|
"title": "Alerting with TestData",
|
|
|
"uid": "7MeksYbmk",
|
|
|
- "version": 7
|
|
|
+ "version": 1
|
|
|
}
|