我已经将警报管理器规则配置为在Prometheus指标从0更改为1时触发警报它在指标从0更改为1时触发webhook警报,但警报管理器不断触发webhook,重复相同指标更改的警报。
是否有防止来自警报管理器的更多警报静默的配置?
下面是我的alertmanager配置
global:
resolve_timeout: 15m
http_config: {}
smtp_hello: localhost
smtp_require_tls: true
route:
receiver: web.hook
group_by:
- ccu_code
receivers:
- name: web.hook
webhook_configs:
- send_resolved: true
http_config: {}
url: http://service:8080/alarms
max_alerts: 0
templates: []发布于 2021-10-25 12:21:49
您会收到这些重复的警报,因为AlertManager具有以下设置:
# How long to wait before sending a notification again if it has already
# been sent successfully for an alert. (Usually ~3h or more).
[ repeat_interval: <duration> | default = 4h ]https://prometheus.io/docs/alerting/latest/configuration/
我认为它被设计成这样的原因是,你希望在你忘记处理它的情况下,不断得到关于活动问题的通知。
https://stackoverflow.com/questions/67282185
复制相似问题