feat: alert on Sia hostd usage instead of df for /mnt/sia
Lint / Python (flake8) (push) Successful in 2m6s
Lint / Notify on failure (push) Skipped
Security / Python Security (bandit) (push) Failing after 2m8s
Lint / Python (flake8) (pull_request) Successful in 1m22s
Lint / Notify on failure (pull_request) Skipped
Security / Python Security (bandit) (pull_request) Failing after 1m24s
Test / Python Tests (pytest) (pull_request) Successful in 1m21s
Test / Python Tests (pytest) (push) Successful in 1m19s

hostd allocates its whole data.dat over time and then reuses freed slots,
so df on the mount is expected to read nearly full and says nothing about
real usage. Alert on hostd's used/total sectors for mounts listed in
LXC_MANAGED_VOLUMES, and keep a critical free-space floor for a real
out-of-space risk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-06 12:36:22 -05:00
1 parent 86c7782b61
commit d8f707ade7
3 files changed
+196 -10

No files matched your search

+10
View File
@@ -179,6 +179,16 @@ The following paths are automatically excluded from monitoring:
- `/opt/metube_downloads`
- Pattern-based exclusions for media and download directories
## Application-Managed Volumes
Some mounts are expected to read nearly full, so `df` is the wrong signal. Sia's hostd
allocates its whole `data.dat` over time, then reuses freed slots. For mounts listed in
`LXC_MANAGED_VOLUMES` (currently `/mnt/sia` on LXC 141):
- The usual LXC thresholds apply to hostd's used/total sectors, read from its database in read-only mode.
- A critical ticket is created if the filesystem has less than `min_free_bytes` (20 GiB) left.
- If hostd's usage can't be read, the daemon logs a warning and only checks the free-space floor.
## Service Configuration
The daemon runs: