Observability, secrets, and trust bar — homelab / farm edge¶
Purpose¶
Canonical synthesis for how the homelab / farm edge stack should treat metrics, alerts, logs, secrets, and remote trust—aligned with operator-grade upstream docs and without mandating a single vendor bundle. Complements Monitoring and logging expectations — edge cluster standard and Secrets and certificates — edge cluster standard.
Non-goals: Full Prometheus HA design; product selection where Platform decision memo — phase, HA scope, deferrals already defers scope.
Source grounding (vault + primary web)¶
| Topic | Vault / primary |
|---|---|
| Prometheus Alertmanager — routing, inhibition, silences | Captures: Inbox batch — Frigate, SOPS, Prometheus, TN811, NRCS/UT (2026-04-18) (prometheus-alertmanager-*-docs-capture-inbox-2026-04-18.md); upstream prometheus.io/docs/alerting. |
| Flux + SOPS (GitOps secrets) | Capture: fluxcd-manage-kubernetes-secrets-with-sops-capture-inbox-2026-04-18.md in same batch; upstream fluxcd.io/flux/guides/mozilla-sops. |
| SOPS (encrypt YAML/JSON in repo) | Capture: sops-project-readme-docs-capture-inbox-2026-04-18.md; project github.com/getsops/sops. |
| Grafana Alloy (collector / pipeline option) | Primary reference note: Grafana Alloy — official documentation. |
Alert routing philosophy (farm-relevant)¶
- Reduce noise before adding channels: Use Alertmanager-style grouping and inhibition so one physical failure does not page as dozens of tickets (
Automation stop rules — two-site smart farmNS-* family). - Separate “welfare / safety” from “convenience”: Livestock water, extreme temperature, or gate anomalies deserve different routing than disk or certificate warnings—document receiver mapping in the same place as
Instrumentation priority matrix — two-site smart farm. - WAN-aware stops: If alerts drive “should I drive?”, they must pass degraded drills in
Automation stop rules(CS-4) andManual fallback and degraded modes — critical operations—dashboards are not ground truth when the broker is stale. - Off-grid /
SITE_FARM: Pair cluster metrics with power state (SOC, generator) perMonitoring and logging expectations — edge cluster standard—Kubernetes green can coexist with ranch brown.
Secrets and repo-safe handling (normative summary)¶
| Rule | Rationale |
|---|---|
| No plaintext secrets in public Git | Secrets and certificates — edge cluster standard row 1; implement with SOPS, Sealed Secrets, or external KMS per policy. |
| Flux + SOPS for GitOps clusters | Encrypted Secret manifests in repo; decrypt only on cluster—see Flux guide capture in inbox batch. |
| Rotate on personnel or compromise | Same standard rows 2–4; break-glass path documented and tested. |
What must be observable before remote operations are “trusted”¶
Minimum trust bar (additive to the monitoring standard):
| Signal | Why it matters |
|---|---|
| End-to-end app health (HTTP/probe beyond pod Running) | Prevents false confidence when PVC or DB is broken. |
| Backup job success (or explicit “no backup configured”) | Backup validation cadence — farm stack standard. |
| Certificate / ingress expiry (if TLS ingress used) | Avoid silent HTTPS failure on remote admin. |
| One documented on-call path for farm-critical alerts | Ties to CS-* and Remote access and operational security model — two-site smart farm. |
Not sufficient alone: Video / NVR feeds (see Local video / NVR — role and deferral boundaries).
Operator burden (hostile default)¶
Trust bar ≠ free time. Routing, inhibition, silences, and on-call paths are recurring labor—often invisible until they collide with field surge and two-site travel. Budget triage hours explicitly; otherwise NS-2 triage stops are theoretical (Automation stop rules). Skeptical stack view: Phase 0–1 operator burden review — East Tennessee two-site (hostile).
Grafana Alloy (optional component)¶
Alloy may centralize otel pipelines (logs + metrics + traces) if the team accepts another daemon on the edge—see Grafana Alloy — official documentation. Default remains: satisfy the monitoring standard with any supported stack; upgrade to Alloy when log volume or multi-signal routing justifies ops cost.