【问题标题】:Prometheus - Inhibit warning alert when same alert is in criticalPrometheus - 当同一警报处于严重状态时禁止警告警报
【发布时间】:2020-09-09 21:32:38
【问题描述】:

我尝试抑制警报,因此严重的相同警报可以抑制警告警报。 以下配置不起作用...请提出此配置的问题..

inhibit_rules:
- source_match:
    alertname: Inhibit
    severity: critical
  target_match:
    severity: warning
    alertname: KubePodNotReady
  equal: ['alertname', 'namespace', 'pod', 'prometheus']

inhibit_rules:
- source_match:
    severity: 'critical'
  target_match:
    severity: 'warning'
  equal: ['alertname', 'namespace', 'pod','prometheus']

【问题讨论】:

    标签: prometheus-alertmanager


    【解决方案1】:

    以下配置对我有用。

    inhibit_rules:
     - source_match:
           severity: critical
           alertname: KubePodNotReady
       target_match:
           severity: warning
           alertname: KubePodNotReady
       equal: ['namespace', 'pod', 'prometheus']
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-12-23
      • 1970-01-01
      • 1970-01-01
      • 2020-04-15
      • 1970-01-01
      • 2020-02-10
      • 1970-01-01
      相关资源
      最近更新 更多