Skip to content

Latest commit

 

History

History
21 lines (20 loc) · 1.15 KB

README.md

File metadata and controls

21 lines (20 loc) · 1.15 KB

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