Merge pull request 'Merged rules' (#23) from kholmes-patch-5 into main
Scrap-Web/pipeline/head This commit looks good
Scrap-Web/pipeline/head This commit looks good
Reviewed-on: #23
This commit was merged in pull request #23.
This commit is contained in:
@@ -62,3 +62,78 @@ groups:
|
|||||||
isPaused: false
|
isPaused: false
|
||||||
notification_settings:
|
notification_settings:
|
||||||
receiver: team-alerts
|
receiver: team-alerts
|
||||||
|
- orgId: 1
|
||||||
|
name: infrastructure-alerts
|
||||||
|
folder: SSW 590
|
||||||
|
interval: 30s
|
||||||
|
rules:
|
||||||
|
- uid: bg2tu8l6pb20wc
|
||||||
|
title: HostDiskLow
|
||||||
|
condition: C
|
||||||
|
data:
|
||||||
|
- refId: A
|
||||||
|
relativeTimeRange:
|
||||||
|
from: 600
|
||||||
|
to: 0
|
||||||
|
datasourceUid: prometheus
|
||||||
|
model:
|
||||||
|
editorMode: code
|
||||||
|
expr: |-
|
||||||
|
100 *
|
||||||
|
node_filesystem_avail_bytes{
|
||||||
|
mountpoint="/",
|
||||||
|
fstype!="rootfs",
|
||||||
|
device="/dev/vda1"
|
||||||
|
}
|
||||||
|
/
|
||||||
|
node_filesystem_size_bytes{
|
||||||
|
mountpoint="/",
|
||||||
|
fstype!="rootfs",
|
||||||
|
device="/dev/vda1"
|
||||||
|
}
|
||||||
|
instant: true
|
||||||
|
intervalMs: 1000
|
||||||
|
legendFormat: __auto
|
||||||
|
maxDataPoints: 43200
|
||||||
|
range: false
|
||||||
|
refId: A
|
||||||
|
- refId: C
|
||||||
|
queryType: expression
|
||||||
|
datasourceUid: __expr__
|
||||||
|
model:
|
||||||
|
conditions:
|
||||||
|
- evaluator:
|
||||||
|
params:
|
||||||
|
- 15
|
||||||
|
type: lt
|
||||||
|
operator:
|
||||||
|
type: and
|
||||||
|
query:
|
||||||
|
params:
|
||||||
|
- C
|
||||||
|
reducer:
|
||||||
|
params: []
|
||||||
|
type: last
|
||||||
|
type: query
|
||||||
|
datasource:
|
||||||
|
type: __expr__
|
||||||
|
uid: __expr__
|
||||||
|
expression: A
|
||||||
|
intervalMs: 1000
|
||||||
|
maxDataPoints: 43200
|
||||||
|
refId: C
|
||||||
|
type: threshold
|
||||||
|
noDataState: Alerting
|
||||||
|
execErrState: Alerting
|
||||||
|
for: 5m
|
||||||
|
annotations:
|
||||||
|
description: Investigate root filesystem capacity on the monitored Droplet. Check disk usage and Docker logs before taking action. Do not delete Docker volumes or container data as an emergency response.
|
||||||
|
runbook_url: https://git.ssw590-08.me/SSW-590-08/Scrap-Web/src/branch/main/monitoring/RUNBOOK.md
|
||||||
|
summary: Root filesystem free space below 15% on {{ $labels.instance }}
|
||||||
|
labels:
|
||||||
|
owner: kholmes7
|
||||||
|
severity: warning
|
||||||
|
team: ssw590
|
||||||
|
isPaused: false
|
||||||
|
notification_settings:
|
||||||
|
receiver: team-alerts
|
||||||
Reference in New Issue
Block a user