121 prometheus: the monitoring domain's first Guest, and the deploy path under it #1

Open
pit wants to merge 1 commit from wave2/prometheus-121 into main
Owner

Lands the infra-monitoring domain repository and the first Guest of Wave 2: 121 prometheus on duku (tier 2). The scaffold sits on main; this branch adds the Guest and the deploy path under it.

What this branch carries

  • Repo bring-up, W1 standard: modules/guest unchanged, the Makefile floor and per-host targets (with the hyphen→underscore HOST_ENV fix), scripts/semaphore-deploy.sh, .forgejo/workflows/deploy.yml, the pinned CA, the three offline deploy suites adapted to monitoring, env.map/.env.example, the vendored env.sh at pin 804e62b8…, and the docs skeleton.
  • 121 prometheus codified from the live Guest (pct config 121 on duku, read 2026-12-03): 1 core, 2048 MiB, 512 swap, 4G on fast-storage, vmbr1 with ip6=auto, unprivileged, nesting+keyctl, no nameserver line and no mount.
  • The service play: upstream release 3.10.0 pinned by the tarball (41c50d97…) and by the binary inside it (b997c6b8…, the live /usr/local/bin/prometheus). Both templated files render byte-identical to the Guest's own: prometheus.yml 1341 B f71709ce…, the unit 382 B f3247d46….

Restore drill (E2, already done — cited, not repeated)

Guest Drill RTO Archive
121 prometheus THE-68 45 s vzdump-lxc-121-2026_11_12-04_47_17.tar.zst (0.43 GiB)

121 is tier 2, so the drill is required in this body; 122 and 131 will carry theirs. 123 and 115 are tier 3 and have none by plan §2.

Evidence

Check Result
make check rc 0
make validate 1 Stack(s) valid
ansible-playbook --syntax-check on both plays clean
make service-check reaches the new task; the rehearsal needs the deploy's /var/cache path on a Guest that has never had it

The deploy path

A merge to main starts the repository's Semaphore task and follows it. The workflow needs two Actions Variables (SEMAPHORE_PROJECT_ID, SEMAPHORE_TEMPLATE_ID) and the store rows named in env.map; the monitoring actor and the ci-monitoring user arrive in olympus/infra-secrets#70, and the project/template line in olympus/infra-cockpit#42. The Operator-owned steps (state records, the ci-monitoring token, the Actions variables) are one human-only card on THE-129. Until they land, a merge's deploy is red by design — this PR declares nothing that should be applied before them.

Not applied: nothing. The merge lands a repository; the deploy it starts is the first thing that touches a Guest.

Next in the wave, on this tree: 122 grafana → 123 pve-exporter → 131 uptime-kuma → 115 myspeed.

Lands the `infra-monitoring` domain repository and the first Guest of Wave 2: **121 prometheus** on duku (tier 2). The scaffold sits on `main`; this branch adds the Guest and the deploy path under it. ## What this branch carries - **Repo bring-up, W1 standard:** `modules/guest` unchanged, the Makefile floor and per-host targets (with the hyphen→underscore `HOST_ENV` fix), `scripts/semaphore-deploy.sh`, `.forgejo/workflows/deploy.yml`, the pinned CA, the three offline deploy suites adapted to `monitoring`, `env.map`/`.env.example`, the vendored `env.sh` at pin `804e62b8…`, and the docs skeleton. - **121 prometheus codified from the live Guest** (`pct config 121` on duku, read 2026-12-03): 1 core, 2048 MiB, 512 swap, 4G on `fast-storage`, `vmbr1` with `ip6=auto`, unprivileged, `nesting`+`keyctl`, no nameserver line and no mount. - **The service play:** upstream release 3.10.0 pinned by the tarball (`41c50d97…`) and by the binary inside it (`b997c6b8…`, the live `/usr/local/bin/prometheus`). Both templated files render byte-identical to the Guest's own: `prometheus.yml` 1341 B `f71709ce…`, the unit 382 B `f3247d46…`. ## Restore drill (E2, already done — cited, not repeated) | Guest | Drill | RTO | Archive | | --- | --- | --- | --- | | 121 prometheus | [THE-68](/THE/issues/THE-68) | 45 s | `vzdump-lxc-121-2026_11_12-04_47_17.tar.zst` (0.43 GiB) | 121 is tier 2, so the drill is required in this body; 122 and 131 will carry theirs. 123 and 115 are tier 3 and have none by plan §2. ## Evidence | Check | Result | | --- | --- | | `make check` | rc 0 | | `make validate` | `1 Stack(s) valid` | | `ansible-playbook --syntax-check` on both plays | clean | | `make service-check` | reaches the new task; the rehearsal needs the deploy's `/var/cache` path on a Guest that has never had it | ## The deploy path A merge to `main` starts the repository's Semaphore task and follows it. The workflow needs two Actions Variables (`SEMAPHORE_PROJECT_ID`, `SEMAPHORE_TEMPLATE_ID`) and the store rows named in `env.map`; the `monitoring` actor and the `ci-monitoring` user arrive in [olympus/infra-secrets#70](https://forgejo.thepit.space/olympus/infra-secrets/pulls/70), and the project/template line in [olympus/infra-cockpit#42](https://forgejo.thepit.space/olympus/infra-cockpit/pulls/42). The Operator-owned steps (state records, the `ci-monitoring` token, the Actions variables) are one human-only card on THE-129. Until they land, a merge's deploy is red by design — this PR declares nothing that should be applied before them. **Not applied:** nothing. The merge lands a repository; the deploy it starts is the first thing that touches a Guest. Next in the wave, on this tree: 122 grafana → 123 pve-exporter → 131 uptime-kuma → 115 myspeed.
121 prometheus: the monitoring domain's first Guest, and the deploy path under it
All checks were successful
pr-checks / check (pull_request) Successful in 26s
b0391984c8
Creates the domain repository from infra-media's tree: modules/guest
unchanged, the Makefile's floor and per-host Targets, the deploy path
(semaphore-deploy.sh, deploy.yml, the pinned CA and the offline deploy
suite), the vendored env.sh at the pin that names `monitoring`, and the
docs skeleton.

121 prometheus is declared from the live Guest: pct config 121 on duku,
read 2026-12-03 — 1 core, 2048 MiB, 512 swap, 4G on fast-storage, vmbr1
with ip6=auto, unprivileged, nesting+keyctl, no nameserver line and no
mount. The helper script's HTML description is ignored, as the module
ignores it on every adopted Guest.

The service is the upstream release tarball, pinned by version and by two
hashes: the tarball (41c50d97…) and the binary inside it (b997c6b8…), the
live /usr/local/bin/prometheus. Both templated files render byte-identical
to the Guest's own: prometheus.yml 1341 bytes f71709ce…, the unit 382
bytes f3247d46….

The wave's order is 121 → 122 → 123 → 131 → 115; this commit lands the
first and the deploy path, so a merge deploys the host the repository
declares and stops there.
All checks were successful
pr-checks / check (pull_request) Successful in 26s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin wave2/prometheus-121:wave2/prometheus-121
git switch wave2/prometheus-121

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff wave2/prometheus-121
git switch wave2/prometheus-121
git rebase main
git switch main
git merge --ff-only wave2/prometheus-121
git switch wave2/prometheus-121
git rebase main
git switch main
git merge --no-ff wave2/prometheus-121
git switch main
git merge --squash wave2/prometheus-121
git switch main
git merge --ff-only wave2/prometheus-121
git switch main
git merge wave2/prometheus-121
git push origin main
Sign in to join this conversation.
No reviewers
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
olympus/infra-monitoring!1
No description provided.