Skip to content

Latest commit

 

History

History
44 lines (37 loc) · 1.53 KB

File metadata and controls

44 lines (37 loc) · 1.53 KB

Airflow Discord uptime monitor

Simple Airflow monitor with Discord written in Go

made-with-Go Go Reference Go Report Card GitHub license

Build

$ git clone https://github.com/telkomdev/go-airflow-simple-discord-monitor \
    && cd https://github.com/telkomdev/go-airflow-simple-discord-monitor \
    && make build \
    && sudo make install

Example config files

config.json

{
    "airflow_url": "https://my-airflow-server.local",
    "interval": 60,
    "discord_thread_url": "https://my-discord-webhook",
    "discord_name": "My Bot",
    "discord_avatar_url": "https://my-domain/my-avatar.jpg"
}

Run Airflow monitor

$ ./go-airflow-simple-discord-monitor

info: Scheduling task to run every 60 seconds
info: Executing health check
...

Example generated alert

Alt text

Todo

  • Add unit test
  • Improve documentation
  • Improve code quality