Skip to content

Kaminyou/space-warner

Repository files navigation

python version License: MIT linting workflow testing workflow

space-warner

Send a message to your Slack whenever your space is becoming full!

Setup

  1. Create .env
API_ENDPOINT=  # YOUR SLACK API ENDPOINT
FILE_SYSTEMS=  # separated by , and :: can be used to set a local threshold e.g., /xxx/ooo::0.6,/yyy/aaa,/zzz::0.5
GLOBAL_THRESHOLD=  # e.g., 0.70 -> send a message when space usage >= 70% (will be considered when a local threshold is not set)
TRIGGER_INTERVAL=60  # second # if there is no warning triggered previously -> interval to check the system
WARNING_INTERVAL=3600  # second # once a warning is triggered, trigger again after WARNING_INTERVAL
$ docker-compose up --build -d

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published