Files
devops-it-manual/evidence/chapter5/alert-rules-export.json
2026-10-30 20:58:41 +00:00

192 lines
4.9 KiB
JSON

[
{
"id": 1,
"uid": "sre-https-unavailable",
"orgID": 1,
"folderUID": "bg2th6ik05vr4e",
"ruleGroup": "Chapter 5 SRE Alerts",
"title": "HTTPS Service Unavailable",
"condition": "C",
"data": [
{
"refId": "A",
"queryType": "",
"relativeTimeRange": {
"from": 300,
"to": 0
},
"datasourceUid": "prometheus",
"model": {
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "probe_success{job=\"https\"} or on(instance,job) (0 * up{job=\"https\"})",
"instant": true,
"intervalMs": 30000,
"maxDataPoints": 43200,
"refId": "A"
}
},
{
"refId": "B",
"queryType": "",
"relativeTimeRange": {
"from": 0,
"to": 0
},
"datasourceUid": "__expr__",
"model": {
"conditions": [],
"expression": "A",
"intervalMs": 1000,
"maxDataPoints": 43200,
"reducer": "last",
"refId": "B",
"type": "reduce"
}
},
{
"refId": "C",
"queryType": "",
"relativeTimeRange": {
"from": 0,
"to": 0
},
"datasourceUid": "__expr__",
"model": {
"conditions": [
{
"evaluator": {
"params": [
1
],
"type": "lt"
}
}
],
"expression": "B",
"intervalMs": 1000,
"maxDataPoints": 43200,
"refId": "C",
"type": "threshold"
}
}
],
"updated": "2026-10-30T20:51:37Z",
"noDataState": "NoData",
"execErrState": "Error",
"annotations": {
"description": "The HTTPS probe has failed continuously for at least one minute.",
"runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md",
"summary": "HTTPS probe failure for {{ $labels.instance }}"
},
"labels": {
"chapter": "5",
"owner": "sespinal",
"severity": "critical"
},
"provenance": "file",
"isPaused": false,
"notification_settings": null,
"record": null,
"for": "1m",
"keep_firing_for": "0s"
},
{
"id": 2,
"uid": "sre-root-disk-low",
"orgID": 1,
"folderUID": "bg2th6ik05vr4e",
"ruleGroup": "Chapter 5 SRE Alerts",
"title": "Host Root Disk Space Low",
"condition": "C",
"data": [
{
"refId": "A",
"queryType": "",
"relativeTimeRange": {
"from": 300,
"to": 0
},
"datasourceUid": "prometheus",
"model": {
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "100 * node_filesystem_avail_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"} / node_filesystem_size_bytes{job=\"node-exporter\",mountpoint=\"/\",fstype!~\"tmpfs|overlay\"}",
"instant": true,
"intervalMs": 30000,
"maxDataPoints": 43200,
"refId": "A"
}
},
{
"refId": "B",
"queryType": "",
"relativeTimeRange": {
"from": 0,
"to": 0
},
"datasourceUid": "__expr__",
"model": {
"conditions": [],
"expression": "A",
"intervalMs": 1000,
"maxDataPoints": 43200,
"reducer": "last",
"refId": "B",
"type": "reduce"
}
},
{
"refId": "C",
"queryType": "",
"relativeTimeRange": {
"from": 0,
"to": 0
},
"datasourceUid": "__expr__",
"model": {
"conditions": [
{
"evaluator": {
"params": [
15
],
"type": "lt"
}
}
],
"expression": "B",
"intervalMs": 1000,
"maxDataPoints": 43200,
"refId": "C",
"type": "threshold"
}
}
],
"updated": "2026-10-30T20:51:37Z",
"noDataState": "NoData",
"execErrState": "Error",
"annotations": {
"description": "Available root filesystem space has remained below 15% for five minutes.",
"runbook_url": "https://git.sespinal590.dev/group10-startup/devops-it-manual/src/branch/chapter5-sre-monitoring/monitoring/ALERTING-RUNBOOK.md",
"summary": "Host root disk availability below 15%"
},
"labels": {
"chapter": "5",
"owner": "sespinal",
"severity": "warning"
},
"provenance": "file",
"isPaused": false,
"notification_settings": null,
"record": null,
"for": "5m",
"keep_firing_for": "0s"
}
]