Notification channels
Add email, Telegram, and webhook destinations for alerts
Channels are destinations. Alert rules pick one or more channels when they fire. Create channels first.
Add a channel
- Open Notification Channels → New channel.
- Channel type — Email, Telegram, or Webhook (SMS and WhatsApp show as Soon).
- Friendly name — shown when you attach the channel to an alert rule (e.g. "Ops Telegram").
- Destination — credentials for that type (below).
- Click Create channel. Then open Alert Rules (or use Set up alerts on the channels page).
Enter the Email address that should receive alerts.
Telegram
- Bot token from @BotFather.
- Chat ID — DM, group, or channel. Message the bot, then call Telegram
getUpdateswith your token to read the chat id. - Optional Message thread ID for forum / topic groups.
Webhook
Enter an HTTPS Callback URL. We auto-generate a Signing secret — copy it into your receiver.
On create we verify the URL:
- We
GETyour URL withmode=subscribe,token(the secret), andchallenge. - Respond
200with the challenge as plain text. The button shows Verifying… while this runs. - Later deliveries are
POSTJSON with headerx-oleqlog-secret.
// GET ?mode=subscribe&token=…&challenge=…
if (req.method === "GET" && url.searchParams.get("mode") === "subscribe") {
const token = url.searchParams.get("token");
const challenge = url.searchParams.get("challenge") ?? "";
if (token !== process.env.OLEQLOG_WEBHOOK_SECRET) {
return new Response("forbidden", { status: 403 });
}
return new Response(challenge, { status: 200 });
}
// POST — alert payload; check header x-oleqlog-secretNext: Alert rules