Files

23 lines
968 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
groups:
- name: disk
interval: 15s
rules:
- alert: HighDiskUsageRoot
expr: (1 - node_filesystem_avail_bytes{mountpoint="/"} / node_filesystem_size_bytes{mountpoint="/"}) > 0.8
for: 5m
labels:
severity: critical
alert_type: disk
annotations:
summary: "主机 {{ $labels.hostname }} 根分区磁盘使用率过高"
description: "根分区 / 当前使用率: {{ $value | humanizePercentage }}阈值80%"
- alert: HighDiskUsageData
expr: (1 - node_filesystem_avail_bytes{mountpoint="/data"} / node_filesystem_size_bytes{mountpoint="/data"}) > 0.9
for: 5m
labels:
severity: warning
alert_type: disk
annotations:
summary: "主机 {{ $labels.hostname }} /data 分区磁盘使用率过高"
description: "/data 分区当前使用率: {{ $value | humanizePercentage }}阈值90%"