go-airflow-simple-discord-monitor

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2023 License: MIT Imports: 6 Imported by: 0

README

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
...

Todo

  • Add unit test
  • Improve documentation
  • Improve code quality

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL