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 進行翻譯

留言