181 lines
6.0 KiB
JSON
181 lines
6.0 KiB
JSON
{
|
|
"apiVersion": 1,
|
|
"groups": [
|
|
{
|
|
"orgId": 1,
|
|
"name": "team-sre",
|
|
"folder": "SSW590",
|
|
"interval": "30s",
|
|
"rules": [
|
|
{
|
|
"uid": "sre-service-unavailable",
|
|
"title": "HTTPS service unavailable",
|
|
"condition": "B",
|
|
"data": [
|
|
{
|
|
"refId": "A",
|
|
"datasourceUid": "prometheus",
|
|
"relativeTimeRange": {
|
|
"from": 600,
|
|
"to": 0
|
|
},
|
|
"model": {
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "prometheus"
|
|
},
|
|
"expr": "min by (instance) (probe_success{job=\"https\"} or on(instance) label_replace(vector(0), \"instance\", \"https://myfileagent.tech/user/login\", \"\", \"\") or on(instance) label_replace(vector(0), \"instance\", \"https://ci.myfileagent.tech/login\", \"\", \"\"))",
|
|
"instant": true,
|
|
"range": false,
|
|
"refId": "A",
|
|
"intervalMs": 1000,
|
|
"maxDataPoints": 43200
|
|
}
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"datasourceUid": "__expr__",
|
|
"relativeTimeRange": {
|
|
"from": 0,
|
|
"to": 0
|
|
},
|
|
"model": {
|
|
"refId": "B",
|
|
"type": "threshold",
|
|
"expression": "A",
|
|
"datasource": {
|
|
"type": "__expr__",
|
|
"uid": "__expr__"
|
|
},
|
|
"conditions": [
|
|
{
|
|
"evaluator": {
|
|
"params": [
|
|
1
|
|
],
|
|
"type": "lt"
|
|
},
|
|
"operator": {
|
|
"type": "and"
|
|
},
|
|
"query": {
|
|
"params": [
|
|
"B"
|
|
]
|
|
},
|
|
"reducer": {
|
|
"params": [],
|
|
"type": "last"
|
|
},
|
|
"type": "query"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"noDataState": "Alerting",
|
|
"execErrState": "Alerting",
|
|
"for": "1m",
|
|
"isPaused": false,
|
|
"labels": {
|
|
"owner": "SSW590-Group7",
|
|
"team": "group7",
|
|
"severity": "critical",
|
|
"scope": "assignment7"
|
|
},
|
|
"annotations": {
|
|
"summary": "HTTPS probe failed or the expected service probe series is missing for at least one minute.",
|
|
"description": "Follow the linked runbook. Alerts route to the team Discord contact point; inspect probe/collection health and record acknowledgement and recovery times.",
|
|
"runbook_url": "https://metrics.myfileagent.tech/d/myfileagent-sre-runbooks?viewPanel=panel-1"
|
|
},
|
|
"dashboardUid": "myfileagent-sre"
|
|
},
|
|
{
|
|
"uid": "sre-root-capacity",
|
|
"title": "Host root available space below 15 percent",
|
|
"condition": "B",
|
|
"data": [
|
|
{
|
|
"refId": "A",
|
|
"datasourceUid": "prometheus",
|
|
"relativeTimeRange": {
|
|
"from": 600,
|
|
"to": 0
|
|
},
|
|
"model": {
|
|
"datasource": {
|
|
"type": "prometheus",
|
|
"uid": "prometheus"
|
|
},
|
|
"expr": "100 * node_filesystem_avail_bytes{job=\"node\",instance=\"node-exporter:9100\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"} / node_filesystem_size_bytes{job=\"node\",instance=\"node-exporter:9100\",mountpoint=\"/\",device=\"/dev/vda1\",fstype=\"ext4\"}",
|
|
"instant": true,
|
|
"range": false,
|
|
"refId": "A",
|
|
"intervalMs": 1000,
|
|
"maxDataPoints": 43200
|
|
}
|
|
},
|
|
{
|
|
"refId": "B",
|
|
"datasourceUid": "__expr__",
|
|
"relativeTimeRange": {
|
|
"from": 0,
|
|
"to": 0
|
|
},
|
|
"model": {
|
|
"refId": "B",
|
|
"type": "threshold",
|
|
"expression": "A",
|
|
"datasource": {
|
|
"type": "__expr__",
|
|
"uid": "__expr__"
|
|
},
|
|
"conditions": [
|
|
{
|
|
"evaluator": {
|
|
"params": [
|
|
15
|
|
],
|
|
"type": "lt"
|
|
},
|
|
"operator": {
|
|
"type": "and"
|
|
},
|
|
"query": {
|
|
"params": [
|
|
"B"
|
|
]
|
|
},
|
|
"reducer": {
|
|
"params": [],
|
|
"type": "last"
|
|
},
|
|
"type": "query"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"noDataState": "Alerting",
|
|
"execErrState": "Alerting",
|
|
"for": "5m",
|
|
"isPaused": false,
|
|
"labels": {
|
|
"owner": "SSW590-Group7",
|
|
"team": "group7",
|
|
"severity": "warning",
|
|
"scope": "assignment7"
|
|
},
|
|
"annotations": {
|
|
"summary": "Available space on the verified host root filesystem is below 15 percent for five minutes.",
|
|
"description": "Follow the linked runbook. Alerts route to the team Discord contact point; inspect probe/collection health and record acknowledgement and recovery times.",
|
|
"runbook_url": "https://metrics.myfileagent.tech/d/myfileagent-sre-runbooks?viewPanel=panel-2"
|
|
},
|
|
"dashboardUid": "myfileagent-sre",
|
|
"panelId": 3
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|