008 add telegram alerts
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
contact_point:
|
||||
name: "telegram-webhook"
|
||||
type: "webhook"
|
||||
settings:
|
||||
method: "POST"
|
||||
url: "https://api.telegram.org/bot${G2S_ALERTS__TELEGRAM_BOT_TOKEN}/sendMessage"
|
||||
headers:
|
||||
Content-Type: "application/json"
|
||||
body: |
|
||||
{
|
||||
"chat_id": "${G2S_ALERTS__TELEGRAM_CHAT_ID}",
|
||||
"text": "[{{ .Status }}] {{ .RuleName }}\nProvider: {{ index .Labels \"provider\" }}\nSummary: {{ index .Annotations \"summary\" }}",
|
||||
"disable_notification": false
|
||||
}
|
||||
Reference in New Issue
Block a user