008 add telegram alerts

This commit is contained in:
Раис Юсупалиев
2026-03-08 12:04:42 +03:00
parent 8d47917ba2
commit 34d7a4c336
10 changed files with 256 additions and 6 deletions
@@ -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
}