给我编写一个prometheus监控node的告警规则示例
时间: 2023-03-07 20:42:37 浏览: 174
prometheus监控mysql和报警规则详细资料—超详细,超全面(带文档和相关软件包)
示例规则:1. 当node cpu使用率超过90%时触发警报:alert: NodeHighCPU
expr: 100 * (1 - avg by (instance) (irate(node_cpu_seconds_total[5m]))) > 90
for: 5m
labels:
severity: warning
annotations:
summary: "{{ $labels.instance }} node CPU usage is high"
description: "{{ $labels.instance }} node CPU usage is above 90% (current value is {{ $value }})"
阅读全文