observability configs: loki delete_request_store, prometheus targets, grafana root URL

- loki: recent releases require compactor.delete_request_store when
  retention is enabled (was crash-looping on start)
- prometheus: scrape targets carried legacy dankclaw.local names with
  URL schemes (invalid); point at published LAN ports and the gitea
  quadlet's published port instead
- grafana: GF_SERVER_ROOT_URL to the canonical HTTPS name
- tests: 3 new seams for the deployed observability configs
This commit is contained in:
Frank committed 2026-08-22 03:04:36 -07:00
1 parent d5e9c63802
commit 37f05a5f9e
4 files changed
+27 -8

No files matched your search

+18
View File
@@ -100,3 +100,21 @@ CADDYFILE="$REPO_ROOT/dankclaw/Caddyfile"
grep -q 'xcaddy build' "$cf"
grep -q 'github.com/caddy-dns/porkbun' "$cf"
}
# --- Observability configs (deployed by deploy.sh step 3) ---
@test "no legacy .local service names remain in shared configs or compose" {
! grep -rn 'dankclaw\.local\|dankserver\.local' \
"$REPO_ROOT/shared" "$REPO_ROOT/dankclaw/compose.yaml"
}
@test "loki compactor has a delete_request_store (required when retention is on)" {
local loki="$REPO_ROOT/shared/loki/loki-config.yaml"
if grep -q 'retention_enabled: true' "$loki"; then
grep -q 'delete_request_store:' "$loki"
fi
}
@test "prometheus targets are host:port (no URL schemes)" {
! grep -nE '^\s*-\s*"?http' "$REPO_ROOT/shared/prometheus/prometheus.yml"
}