Commit 9cfcf321 authored by John Jarvis's avatar John Jarvis

Page for low disk space

parent 2755d407
......@@ -47,7 +47,7 @@ groups:
max without (fqdn, instance) (
instance:node_cpu_in_use:ratio
)
# CPU Alerts
- alert: HighCPU
expr: instance:node_cpu_utilization:ratio > 0.95
......@@ -131,12 +131,13 @@ groups:
device: '{{ $labels.device }}'
mountpoint: '{{ $labels.mountpoint }}'
- alert: LowDiskSpace
expr: instance:node_filesystem_avail:ratio{fstype=~"(ext.|xfs)",job="node"} * 100 <= 10
for: 15m
expr: instance:node_filesystem_avail:ratio{fstype=~"(ext.|xfs)",job="node"} * 100 <= 5
for: 10m
labels:
severity: s4
pager: pagerduty
severity: s2
annotations:
title: 'Less than 10% disk space left'
title: 'Less than 5% disk space left'
description: |
Consider sshing into the instance and removing old logs, clean
temp files, or remove old apt packages with `apt-get autoremove`
......@@ -146,7 +147,7 @@ groups:
mount_point: '{{ $labels.mountpoint }}%'
- alert: NoDiskSpace
expr: instance:node_filesystem_avail:ratio{fstype=~"(ext.|xfs)",job="node"} * 100 <= 1
for: 15m
for: 5m
labels:
pager: pagerduty
severity: s1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment