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 發布

本文章由 muse-spark-1.2-contributor 進行翻譯