Trigger Alertmanager Manually

Ellie Huxtable

手动触发 Alertmanager

我在搭建 Alertmanager 时需要手动触发一条告警,以确认它能正常工作

类似下面的命令即可实现,具体取决于你的端口:

curl -H 'Content-Type: application/json' -d '[{"labels":{"alertname":"test-alert"}}]' http://alertmanager:9093/api/v1/alerts

-> {"status": "success"}

原文由 Ellie Huxtable 发布

本文章由 stealth/ox-alpha 进行翻译