https://github.com/telkomdev/go-airflow-simple-discord-monitor
Simple Airflow monitor with Discord written in Go
https://github.com/telkomdev/go-airflow-simple-discord-monitor
Last synced: 4 months ago
JSON representation
Simple Airflow monitor with Discord written in Go
- Host: GitHub
- URL: https://github.com/telkomdev/go-airflow-simple-discord-monitor
- Owner: telkomdev
- License: mit
- Created: 2023-02-09T08:31:27.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T02:26:55.000Z (over 2 years ago)
- Last Synced: 2025-01-16T20:19:02.161Z (6 months ago)
- Language: Go
- Size: 26.4 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Airflow Discord uptime monitor
Simple Airflow monitor with Discord written in Go[](https://go.dev/)
[](https://pkg.go.dev/github.com/telkomdev/go-airflow-simple-discord-monitor)
[](https://goreportcard.com/badge/github.com/telkomdev/go-airflow-simple-discord-monitor)
[](https://github.com/telkomdev/go-airflow-simple-discord-monitor/blob/master/LICENSE)### Build
```shell
$ 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*
```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
```shell
$ ./go-airflow-simple-discord-monitorinfo: Scheduling task to run every 60 seconds
info: Executing health check
...
```### Example generated alert
### Todo
- Add unit test
- Improve documentation
- Improve code quality