1 Commits

Author SHA1 Message Date
0b4e269d6c fix backup missing alert & bump Not successful alert to 60m 2025-11-04 19:34:03 +01:00

View File

@ -69,12 +69,15 @@
"data": [ "data": [
{ {
"refId": "A", "refId": "A",
"relativeTimeRange": { "from": 600, "to": 0 }, "relativeTimeRange": {
"from": 28800,
"to": 0
},
"datasourceUid": "PBFA97CFB590B2093", "datasourceUid": "PBFA97CFB590B2093",
"model": { "model": {
"disableTextWrap": false, "disableTextWrap": false,
"editorMode": "builder", "editorMode": "code",
"expr": "rate(backup[24h])", "expr": "rate(backup[25h]) == 0",
"fullMetaSearch": false, "fullMetaSearch": false,
"includeNullMetadata": true, "includeNullMetadata": true,
"instant": true, "instant": true,
@ -88,20 +91,41 @@
}, },
{ {
"refId": "B", "refId": "B",
"relativeTimeRange": { "from": 600, "to": 0 }, "relativeTimeRange": {
"from": 28800,
"to": 0
},
"datasourceUid": "__expr__", "datasourceUid": "__expr__",
"model": { "model": {
"conditions": [ "conditions": [
{ {
"evaluator": { "params": [0, 0], "type": "within_range" }, "evaluator": {
"operator": { "type": "and" }, "params": [
"query": { "params": ["C"] }, -1,
"reducer": { "params": [], "type": "last" }, 0
],
"type": "gt"
},
"operator": {
"type": "and"
},
"query": {
"params": []
},
"reducer": {
"params": [],
"type": "avg"
},
"type": "query" "type": "query"
} }
], ],
"datasource": { "type": "__expr__", "uid": "__expr__" }, "datasource": {
"name": "Expression",
"type": "__expr__",
"uid": "__expr__"
},
"expression": "A", "expression": "A",
"hide": false,
"intervalMs": 1000, "intervalMs": 1000,
"maxDataPoints": 43200, "maxDataPoints": 43200,
"refId": "B", "refId": "B",
@ -112,6 +136,8 @@
"noDataState": "NoData", "noDataState": "NoData",
"execErrState": "Error", "execErrState": "Error",
"for": "5m", "for": "5m",
"annotations": {},
"labels": {},
"isPaused": false "isPaused": false
}, },
{{ end }} {{ end }}
@ -188,9 +214,9 @@
], ],
"noDataState": "NoData", "noDataState": "NoData",
"execErrState": "Error", "execErrState": "Error",
"for": "20m", "for": "60m",
"annotations": { "annotations": {
"summary": "Backup did not finish within 20 minutes" "summary": "Backup did not finish within 60 minutes"
}, },
"labels": {}, "labels": {},
"isPaused": false "isPaused": false