Trigger Alertmanager Manually

Ellie Huxtable

手动触发 Alertmanager

原文由 Ellie Huxtable 发布,订阅该博客

我在配置 Alertmanager,需要手动触发一条告警来确认它是否正常工作。

用类似下面的命令就行,具体取决于你的端口:

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

-> {"status": "success"}

本文章由 muse-spark-1.2-contributor 进行翻译

评论