手动触发 Alertmanager
原文由 Ellie Huxtable 于 发布,订阅该博客
我在配置 Alertmanager,需要手动触发一条告警来确认它是否正常工作。
用类似下面的命令就行,具体取决于你的端口:
curl -H 'Content-Type: application/json' -d '[{"labels":{"alertname":"test-alert"}}]' http://alertmanager:9093/api/v1/alerts
-> {"status": "success"}随机一篇博客
评论
登录后参与讨论