homek8s/monitoring/controllers/home
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lance Walters 6b91152a79 monitoring(logs): a readable Loki — Logs dashboard + provisioning-reload runbook
The log store shipped in t_34ddaa83 but nothing could read it: the Loki datasource
ConfigMap was live and written into Grafana's provisioning volume, and Grafana still
listed only Prometheus + Alertmanager. Root cause was not the ConfigMap. The
datasource sidecar writes the file and then POSTs
/api/admin/provisioning/datasources/reload with monitoring/grafana-admin, which was
401-ing because Grafana's DB password had drifted from that Secret (the documented
"the Secret is only the seed" behaviour) — Grafana reads provisioning/datasources
only at startup, so the datasource never loaded.

- Reset the live admin password to the Secret's value (in-pod `grafana cli
  admin reset-admin-password`, value read from the Secret and never printed), so
  seed and DB match again and the sidecar's reload returns 200. Documented in
  docs/grafana-persistence.md, including the sidecar consequence of drift.
- New generated dashboard `logs` (uid: logs) with the two queries worth having:
  secret access over time by user from the apiserver audit stream, and pod errors
  by namespace, plus the runner namespaces and a note panel on field names.
- The audit stream's names are the Alloy allowlist's, not the audit event's:
  objectRef.resource arrives as the stream label `resource` and user.username as
  the field `user`. `| json | objectRef_resource="secrets"` returns 0 rows
  (measured); the panels use `resource="secrets"` in the selector + `| json` for
  the user dimension. No pipeline, retention or filter change.
- Runner panels discover their namespace via a `runner_ns` variable
  (.*(runner|forgejo).*) instead of pinning one name, so the t_2bbe34a8 move to
  ci-runners needs no edit here.
- validate_panels.py now dispatches on the target's datasource and queries Loki
  for `loki` panels (a logs panel must return rows, not just series).
2026-11-27 01:23:05 -05:00
..
dashboards monitoring(logs): a readable Loki — Logs dashboard + provisioning-reload runbook 2026-11-27 01:23:05 -05:00
garage.yaml infrastructure(garage): commit the config, prove WG-only, split keys, back it up, scrape it 2026-11-19 16:32:58 -05:00
gateway-probe.yaml internal gateway probe: alert when the gateway label is not on exactly one node 2026-10-27 01:08:53 -04:00
grafana-backup.yaml apps(backup): cover the remaining stateful gaps off-host 2026-11-19 17:14:36 -05:00
httproute.yaml grafana: serve it on the bare WireGuard IP (drop HTTPRoute hostnames) 2026-10-27 00:35:53 -04:00
hubble-loss-gate.yaml networking(hubble): deepen the event ring to 16383 flows and gate detection on loss (F10) 2026-11-27 00:16:47 -05:00
kustomization.yaml secrets: SOPS the backup SSH key and monitoring's hand-made Secrets (F12, part 2) 2026-11-27 00:30:24 -05:00
kustomizeconfig.yaml monitoring: kube-prometheus-stack + WireGuard-only Grafana via the internal gateway 2026-10-27 00:12:38 -04:00
namespace.yaml secops(f6): de-privilege CI job containers + runner uid, add Pod Security labels (#54) 2026-11-27 05:42:39 +00:00
prune-alerts.yaml ci(runners): name the CI capsule ci-runners and mark it privileged in warn/audit too 2026-11-27 01:20:56 -05:00
release.yaml monitoring: kube-prometheus-stack + WireGuard-only Grafana via the internal gateway 2026-10-27 00:12:38 -04:00
repository.yaml monitoring: kube-prometheus-stack + WireGuard-only Grafana via the internal gateway 2026-10-27 00:12:38 -04:00
secret-alertmanager-telegram.sops.yaml secrets: add the four monitoring SOPS files their kustomization already lists (F12 part 2, fix) 2026-11-27 00:36:23 -05:00
secret-cluster-backup-ssh.sops.yaml secrets: add the four monitoring SOPS files their kustomization already lists (F12 part 2, fix) 2026-11-27 00:36:23 -05:00
secret-grafana-admin.sops.yaml secrets: add the four monitoring SOPS files their kustomization already lists (F12 part 2, fix) 2026-11-27 00:36:23 -05:00
secret-grafana-secret-key.sops.yaml secrets: add the four monitoring SOPS files their kustomization already lists (F12 part 2, fix) 2026-11-27 00:36:23 -05:00
values.yaml monitoring(alertmanager): enable an alert sink and wire the 33 PrometheusRules (F5) 2026-11-27 00:09:40 -05:00