Skip to content

telkomdev/go-airflow-simple-discord-monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple Airflow monitor with Discord written in Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published