Gatus Monitoring: Advanced Alerting, Custom Status Pages, and Endpoint Testing (Part 2)

Configure advanced health checks, multi-channel alerting (Discord, Slack, Webhooks), and custom public status pages in Gatus.

Advanced Alerting and Custom Status Pages in Gatus

Gatus is a developer-focused status page. Learn how to monitor API endpoints, verify responses, and send notifications when downtime occurs.

Creating Complex Endpoint Asserts

Add the following checks in your /config/config.yaml:

endpoints:
  - name: Core API
    url: https://api.example.com/v1/health
    interval: 30s
    conditions:
      - "[STATUS] == 200"
      - "[RESPONSE_TIME] < 500"
      - "[BODY].status == ok"

Multi-Channel Alert Configuration

To send notifications to Discord or Telegram:

alerting:
  discord:
    webhook-url: "https://discord.com/api/webhooks/YOUR_WEBHOOK_ID"
  telegram:
    token: "YOUR_TELEGRAM_BOT_TOKEN"
    chat-id: "YOUR_CHAT_ID"

Attach these alerts under individual endpoint configurations:

    alerts:
      - type: discord
        failure-threshold: 3