homek8s/monitoring/controllers/home/dashboards
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
..
build.py monitoring(logs): a readable Loki — Logs dashboard + provisioning-reload runbook 2026-11-27 01:23:05 -05:00
cnpg-postgres.yaml docs(pitr): the plugin path is real — transcript, layout, metrics, 1.31 gate closed 2026-11-19 18:09:23 -05:00
forgejo-runners.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
home-lab-workloads.yaml monitoring: replace the dead kubelet_volume_stats alerts with runner-scoped disk rules 2026-10-27 02:07:07 -04:00
kustomization.yaml monitoring(logs): a readable Loki — Logs dashboard + provisioning-reload runbook 2026-11-27 01:23:05 -05:00
logs.yaml monitoring(logs): a readable Loki — Logs dashboard + provisioning-reload runbook 2026-11-27 01:23:05 -05:00
validate_panels.py monitoring(logs): a readable Loki — Logs dashboard + provisioning-reload runbook 2026-11-27 01:23:05 -05:00