自定义Prometheus告警规则
定义告警规则
groups:
- name: example
rules:
- alert: HighErrorRate
expr: job:request_latency_seconds:mean5m{job="myjob"} > 0.5
for: 10m
labels:
severity: page
annotations:
summary: High request latency
description: description info模板化
查看告警状态

实例:定义主机监控告警





接下来
Last updated