https://github.com/ipunkt/docker-diskmonitor
https://github.com/ipunkt/docker-diskmonitor
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ipunkt/docker-diskmonitor
- Owner: ipunkt
- License: mit
- Created: 2019-10-30T08:31:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-30T14:21:20.000Z (over 6 years ago)
- Last Synced: 2025-06-16T08:08:43.465Z (about 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-diskmonitor
A docker container image to monitor the current usage percent of the partition
mounted as /.
Warnings will be posted to an incoming webhook in slack.
## Configuration
Configuration is done through environment variables. The following are
available:
- `SLACK_URL` REQUIRED url of the slack webhook
- `SLACK_NOTIFY_USERS` comma separated list of users to notify whe
- `SLEEP` time in between checks, defaults to 5m
- `THRESHOLD` disk usage percent threshold to start warning defaults to 90
- `HOSTFILE` the file to read the hostname from, dfeaults to /etc/hostname but
it is recommended to set this to /target/etc/hostname and have a volume set up
`/etc:/target/etc`
- `ENVIRONMENT` if set it will be added in front of the hostname, example
staging/host123