The monitoring host and its members #7

Merged
oliver.maklott merged 1 commit from monitoring-host into main 2026-11-29 19:52:45 +01:00

Milestone 6, part 3 (ADR 0007): the monitoring host and its first members. Pins belowtoxic.monitoring v0.1.0 and infractl v0.8.0 (bootstrap monitoring guides through it).

  • playbooks/monitoring.yml: Flatcar on Hetzner Cloud; publicly only wg2's UDP port; hub of the monitoring network with Alloy's write-only gateway; a server site in the admin network with Grafana on that address; Prometheus + Thanos, Loki, Alertmanager, blackbox_exporter on loopback. Secrets secrets/monitoring/{s3,alerts} (yours), /grafana (generated once). Probes from outside (the IdP's HTTPS + monitoring.yml probes); alerts for a sealed / uninitialized OpenBao.
  • Members: the anchor and the IdP join wg2 once the monitoring host is registered and run Alloy (metrics, journal, local probes: OpenBao on the anchor; Authentik and LDAP on the IdP).
  • Grafana's login: the IdP registers it as an OAuth2 client, secret shared via secrets/monitoring/grafana (whichever playbook runs first generates it), bound to monitoring.yml's groups that exist in idp.yml.
  • Shared tasks bao_generate.yml, wireguard_local.yml, monitoring_member.yml.
  • Scenarios: monitoring (new; two runs, the second changes nothing), anchor and identity with a registered monitoring host. All three green locally.
  • Runbook first-run-monitoring.md; README.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG

Milestone 6, part 3 (ADR 0007): the monitoring host and its first members. Pins belowtoxic.monitoring v0.1.0 and infractl v0.8.0 (`bootstrap monitoring` guides through it). * **`playbooks/monitoring.yml`**: Flatcar on Hetzner Cloud; publicly only wg2's UDP port; hub of the monitoring network with Alloy's write-only gateway; a `server` site in the admin network with Grafana on that address; Prometheus + Thanos, Loki, Alertmanager, blackbox_exporter on loopback. Secrets `secrets/monitoring/{s3,alerts}` (yours), `/grafana` (generated once). Probes from outside (the IdP's HTTPS + `monitoring.yml` probes); alerts for a sealed / uninitialized OpenBao. * **Members**: the anchor and the IdP join wg2 once the monitoring host is registered and run Alloy (metrics, journal, local probes: OpenBao on the anchor; Authentik and LDAP on the IdP). * **Grafana's login**: the IdP registers it as an OAuth2 client, secret shared via `secrets/monitoring/grafana` (whichever playbook runs first generates it), bound to `monitoring.yml`'s groups that exist in `idp.yml`. * Shared tasks `bao_generate.yml`, `wireguard_local.yml`, `monitoring_member.yml`. * Scenarios: `monitoring` (new; two runs, the second changes nothing), `anchor` and `identity` with a registered monitoring host. All three green locally. * Runbook `first-run-monitoring.md`; README. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
The monitoring host and its members
All checks were successful
ci / test (pull_request) Successful in 9s
ci / lint (pull_request) Successful in 25s
ci / molecule (pull_request) Successful in 29m58s
ci / test (push) Successful in 7s
ci / lint (push) Successful in 24s
ci / molecule (push) Successful in 30m36s
0463a28a05
Milestone 6, part 3 (ADR 0007). Pins belowtoxic.monitoring v0.1.0 and
infractl v0.8.0.

* playbooks/monitoring.yml: a Flatcar server on Hetzner Cloud (publicly
  only the monitoring network's UDP port; SSH from the anchor and the
  bootstrap networks), the hub of the monitoring network (wg2) with
  Alloy's write-only gateway on its address, a site with role server in
  the admin network (wg0) with Grafana on that address, Prometheus with
  Thanos, Loki, Alertmanager and blackbox_exporter on loopback. Secrets:
  secrets/monitoring/s3 and /alerts (yours), /grafana (generated once).
  Probes from outside: the IdP's public HTTPS and monitoring.yml probes;
  alerts when OpenBao is sealed or not initialized.
* Members: the anchor and the IdP join the monitoring network once the
  monitoring host is registered and run Alloy - node and unit metrics,
  the journal, local probes (OpenBao's health; Authentik, LDAP).
* The IdP registers Grafana as an OAuth2 client (the secret shared via
  secrets/monitoring/grafana, generated by whichever playbook runs
  first), bound to monitoring.yml's groups that exist in idp.yml.
* Shared tasks: bao_generate.yml, wireguard_local.yml,
  monitoring_member.yml.
* Scenarios: monitoring (new), anchor and identity with a registered
  monitoring host. Runbook first-run-monitoring.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PVUe4g65L7UnUVqHmQp7kG
oliver.maklott deleted branch monitoring-host 2026-11-29 19:52:45 +01:00
Sign in to join this conversation.
No reviewers
No labels
test:kvm
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
belowtoxic-ansible/infrastructure!7
No description provided.