24 lines
858 B
YAML
24 lines
858 B
YAML
groups:
|
|
- name: lehuo-api
|
|
rules:
|
|
- alert: ApiUnavailable
|
|
expr: probe_success{job="lehuo-api"} == 0
|
|
for: 2m
|
|
labels: { severity: critical }
|
|
annotations: { summary: '乐活公益 API 不可用' }
|
|
- alert: ApiHighLatency
|
|
expr: lehuo_api_p95_milliseconds > 1000
|
|
for: 10m
|
|
labels: { severity: warning }
|
|
annotations: { summary: 'API P95 超过 1 秒' }
|
|
- alert: NotificationDeadLetters
|
|
expr: lehuo_notification_dead_total > 0
|
|
for: 5m
|
|
labels: { severity: warning }
|
|
annotations: { summary: '微信通知存在死信' }
|
|
- alert: BackupMissing
|
|
expr: time() - lehuo_backup_last_success_timestamp > 93600
|
|
for: 10m
|
|
labels: { severity: critical }
|
|
annotations: { summary: '超过 26 小时无成功数据库备份' }
|