It sends the link received from gatus the host to the check-host.net and sends the permanent link to the Telegram account.
- TELEGRAM_TOKEN
- TELEGRAM_CHAT
- TELEGRAM_BASE (default: https://api.telegram.org/bot)
- PORT (default: 8080)
- PROXY_URL (optional)
docker build -t gatus-proxy-checkhost:v2 .
- go to https://github.com/saturn99/gatus-proxy-checkhost/releases
- download
chmod +x gatus-proxy-checkhost- run:
export TELEGRAM_TOKEN=xxx
export TELEGRAM_CHAT=xxx
./gatus-proxy-checkhost
docker pull ghcr.io/saturn99/gatus-proxy-checkhost:v2
docker run --rm \
-p 8080:8080 \
--env-file .env \
ghcr.io/saturn99/gatus-proxy-checkhost:v2
OR
docker run --rm \
-p 8080:8080 \
-e TELEGRAM_TOKEN="" \
-e TELEGRAM_CHAT= \
-e TELEGRAM_BASE="https://api.telegram.org" \
ghcr.io/saturn99/gatus-proxy-checkhost:v2
IP=0.0.0.0 docker compose up
curl -X POST \
http://localhost:8080/webhook \
-d '{
"name":"https://www.yahoo.com/",
"status":"check"
}'
add alerting with custom
alerting:
custom:
url: "http://127.0.0.1:8080/webhook"
method: "POST"
body: |
{
"status": "[ALERT_TRIGGERED_OR_RESOLVED]",
"name": "[ENDPOINT_URL]"
}
placeholders:
ALERT_TRIGGERED_OR_RESOLVED:
TRIGGERED: "check"
RESOLVED: "OK"
- sure use
placeholderswith mapedTRIGGEREDtocheck
then use it to configs:
endpoints:
- name: test
url: https://test.test/
alerts:
- type: custom
failure-threshold: 1
send-on-resolved: true