我有以下抑制规则:
######## INHIBIT RULES ########
# Inhibit Rules: https://prometheus.io/docs/alerting/latest/configuration/#inhibit_rule
inhibit_rules:
- source_match:
severity: 'critical'
target_match:
severity: 'warning'
# Apply inhibition if the alertname is the same on the same host.
equal: ['alertname', 'instance', 'url']
###############################这项工作99%的时间是预期的,然而,一些成员希望他们的被监控设备忽略抑制规则。
有没有办法将标签添加到这些目标/规则,以便:
if label ignore_inhibit is true
do not inhibit
else
proceed as planned(我知道如何添加标签,但如果可能,我不知道如何让alertmanagere忽略该标签)
发布于 2021-09-14 12:16:35
使用以下inhibit_rules:
inhibit_rules:
- source_match:
severity: 'critical'
target_matchers:
matchers: [ severity = warning, ignore_inhibit != true ]
equal: ['alertname', 'instance', 'url']https://stackoverflow.com/questions/69176475
复制相似问题