Simple script to send CloudMonitor alarms to Telegram from Alibaba Cloud via HTTP Callback.
Send Alibaba Cloud’s Cloud Monitor notifications to Telegram.
composer install
.env.example
to .env
TG_API_KEY
) and chat ID (TG_CHAT_ID
) into .env
filehttp://your-domain.com/cloudmonitor-telegram/threshold_alarm.php
into the HTTP Callback field in the threshold alarm rule.http://your-domain.com/cloudmonitor-telegram/event_alarm.php
into the URL callback field in the event alarm rule. Do note that, HTTPS is not supported in this callback URL.composer install
<random string>
(use a generator) |<your Telegram Bot API key>
|<your Telegram Chat ID>
|<your function http url>/?signature=<your random string>