prometheus-alertmanager - Prometheus - 当同一警报处于严重状态时禁止警告警报
问题描述
我尝试抑制警报,因此严重的相同警报可以抑制警告警报。以下配置不起作用...请提出此配置的问题..
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']
解决方案
下面的配置对我有用。
inhibit_rules:
- source_match:
severity: critical
alertname: KubePodNotReady
target_match:
severity: warning
alertname: KubePodNotReady
equal: ['namespace', 'pod', 'prometheus']
推荐阅读
- python - 如何在迭代中传递 tr 元素(广告横幅)。使用 BS4 解析
- firebase-hosting - Firebase 托管上的 Flutter 网站适用于域 1,但不适用于域 2
- jestjs - 开玩笑 - 重置模块中的值并重新加载导入
- vue.js - 怎么加零在输入 VueJS 中输入“点”后
- entity-framework - Azure 数据资源管理器 C# 查询和 ORM
- discord - 如何让我的机器人自动删除脏话并用警告替换它们?
- c# - 控制器中的 NullReferenceExeption
- swift - UICollectionView:使用动画和自定义布局调整单元格大小
- r - 在使用 sweetalertR 保存之前确认消息
- mysql - 查找具有至少 2 个连续时间戳或 ID 记录的 MySQL 记录