我正在使用带有 alertmenager 的 prometheus 并且遇到了令人困惑的问题。通知一个是我的自定义,另一个是 [Firing] 标题。
下面的例子和配置。我只想有我的自定义警报。
2:47 PM
[FIRING:1] (InstanceDown labels critical)
2:47 PM
custom notification
警报规则
groups:
- name: targets
rules:
- alert: InstanceDown
expr: up == 0
for: 30s
labels:
severity: critical
summary: {{ labels.instance }}
警报管理器.yml
global:
slack_api_url: xyz
route:
group_interval: 1m
repeat_interval: 5m
receiver: 'backend'
group_by: ['alertname', 'instance', 'application']
routes:
- match:
severity: critical
receiver: 'backend'
receivers:
- name: 'backend'
slack_configs:
- send_resolved: true
- title: '{{ .CommonAnnotations.summary }}'