init
This commit is contained in:
12
prometheus/alert.yml
Normal file
12
prometheus/alert.yml
Normal file
@ -0,0 +1,12 @@
|
||||
groups:
|
||||
- name: Prometheus alert
|
||||
rules:
|
||||
# 对任何实例超过30秒无法联系的情况发出警报
|
||||
- alert: 服务告警
|
||||
expr: up == 0
|
||||
for: 30s
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
instance: "{{ $labels.instance }}"
|
||||
description: "{{ $labels.job }} 服务已关闭"
|
Reference in New Issue
Block a user