display notifications
This commit is contained in:
1 parent
0052822e49
commit
5d8bbcd756
5 files changed
+143
-1
No files matched your search
@@ -17,7 +17,7 @@ func main() {
|
||||
cfg := alerts.ConfigFromEnv()
|
||||
notifiers := cfg.Notifiers()
|
||||
if len(notifiers) == 0 {
|
||||
fmt.Fprintln(os.Stderr, "no channel configured (TELEGRAM_KEY + TELEGRAM_CHATID, or OTEL_ALERT_WEBHOOK_URL)")
|
||||
fmt.Fprintln(os.Stderr, "no channel configured (Telegram, OTEL_ALERT_WEBHOOK_URL, or OTEL_ALERT_AOD_URL)")
|
||||
os.Exit(2)
|
||||
}
|
||||
now := time.Now().UTC()
|
||||
|
||||
Reference in new issue
Block a user