我已经创建了警报,它触发并可以在Alertmanager中看到。因此,以前我可以将通知发送到Slack频道。我不知道是什么原因导致了这个问题,现在无法收到通知。我已经通过了这个Prometheus alert manager doesnt send alert k8s,但没有找到一种方法。任何帮助都将不胜感激。
alertmanager.yaml
global:
slack_api_url: 'https://hooks.slack.com/services/some-dummy'
route:
group_by: [Alertname]
# Send all notifications to me.
receiver: 'slack notifications'
receivers:
- name: 'slack notifications'
slack_configs:
- channel: '#alerts'
text: "{{ .Annotations.summary }}\n{{ .Annotations.description }}\n{{ end }}"普罗米修斯UI

发布于 2021-02-05 15:57:59
移除{{ end }},一开始可能有{{ range .Alerts }},但如果没有它,{{ end }}就没有意义了。
https://stackoverflow.com/questions/66002895
复制相似问题