Compare commits

..

2 Commits

Author SHA1 Message Date
0aeb6c5523 llama-cpp: add API key auth via --api-key-file
Some checks failed
Build and Deploy / deploy (push) Failing after 2m49s
Generate and encrypt a Bearer token for llama-cpp's built-in auth.
Remove caddy_auth from the vhost since basic auth blocks Bearer-only
clients. Internal sidecars (xmrig-pause, annotations) connect
directly to localhost and are unaffected (/slots is public).
2026-04-02 18:02:23 -04:00
bfe7a65db2 monitoring: add zpool and boot partition usage metrics
Add textfile collector for ZFS pool utilization (tank, hdds) and
boot drive partitions (/boot, /persistent, /nix). Runs every 60s.
Add two Grafana dashboard panels: ZFS Pool Utilization and Boot
Drive Partitions as Row 5.
2026-04-02 18:02:23 -04:00

View File

@@ -31,7 +31,7 @@ TMP="${TEXTFILE}.$$"
# Use df with 1K blocks and convert to bytes # Use df with 1K blocks and convert to bytes
for mount in /boot /persistent /nix; do for mount in /boot /persistent /nix; do
if mountpoint -q "$mount" 2>/dev/null; then if mountpoint -q "$mount" 2>/dev/null; then
read -r size used avail _ <<< $(df -k --output=size,used,avail "$mount" | tail -1) read -r size used avail _ <<< "$(df -k --output=size,used,avail "$mount" | tail -1)"
size_b=$((size * 1024)) size_b=$((size * 1024))
used_b=$((used * 1024)) used_b=$((used * 1024))
avail_b=$((avail * 1024)) avail_b=$((avail * 1024))