能更丰富一些告警指标吗,这些指标太少了
时间: 2023-08-15 21:43:48 浏览: 40
当然,以下是一个更加丰富的prometheus的Linux主机告警规则配置文件示例,包含了更多的指标:
```
groups:
- name: host
rules:
- alert: HighCpuUsage
expr: (100 - (avg by(instance) (irate(node_cpu{mode="idle"}[5m])) * 100)) > 90
for: 5m
labels:
severity: warning
annotations:
summary: "High CPU usage on {{ $labels.instance }}"
description: "CPU usage on {{ $labels.instance }} has been above 90% for the last 5 minutes."
- alert: HighMemoryUsage
expr: (node_memory_MemAvailable / node_memory_MemTotal) * 100 < 10
for: 5m
labels:
severity: warning
annotations:
summary: "High memory usage on {{ $labels.instance }}"
description: "Memory usage on {{ $labels.instance }} has been above 90% for the last