dashboards: PROBE — command-tracking window now-24h -> now-12h (nix-config#361, revert follows) #1384

Merged
hermes merged 1 commit from kb/NCFG-361-probe-dashboard-content into main 2026-10-01 10:37:16 -06:00
Collaborator

Kanban card nix-config#361 — REVERSIBLE PROBE, a revert PR follows immediately.

Why a probe

#1383 gave the grafana unit restartTriggers = [ dashboardsDrv ]. The mail deploy that carried it restarted grafana, but that deploy also changed the unit definition itself, so it does not isolate the mechanism.

This PR changes ONLY modules/monitoring/dashboards/command-tracking.json (one field, time.from: now-24h -> now-12h). The unit definition is byte-identical to what mail already runs, so a restart can only come from the changed X-Restart-Triggers hash.

What will be checked live on mail (nobody touches the unit)

  • GET /api/dashboards/uid/command-tracking -> time.from: now-12h (was now-24h);
  • systemctl show grafana -p ActiveEnterTimestamp inside the deploy window, while run 26366bc's restart was at 10:14:53 CST;
  • X-Restart-Triggers store hash changed from i7q68xy3cyzjy5wppjmmdg5jb1d5dkyi.

Not a product decision

now-24h is restored by the revert PR that follows, so the owner's dashboards end exactly as they were. Do not read the 12-hour window as a preference.

Kanban card nix-config#361 — REVERSIBLE PROBE, a revert PR follows immediately. ## Why a probe #1383 gave the grafana unit `restartTriggers = [ dashboardsDrv ]`. The mail deploy that carried it restarted grafana, but that deploy also changed the unit definition itself, so it does not isolate the mechanism. This PR changes ONLY `modules/monitoring/dashboards/command-tracking.json` (one field, `time.from`: `now-24h` -> `now-12h`). The unit definition is byte-identical to what mail already runs, so a restart can only come from the changed `X-Restart-Triggers` hash. ## What will be checked live on mail (nobody touches the unit) - `GET /api/dashboards/uid/command-tracking` -> `time.from: now-12h` (was `now-24h`); - `systemctl show grafana -p ActiveEnterTimestamp` inside the deploy window, while run 26366bc's restart was at 10:14:53 CST; - `X-Restart-Triggers` store hash changed from `i7q68xy3cyzjy5wppjmmdg5jb1d5dkyi`. ## Not a product decision `now-24h` is restored by the revert PR that follows, so the owner's dashboards end exactly as they were. Do not read the 12-hour window as a preference.
dashboards: PROBE — command-tracking window now-24h -> now-12h (nix-config#361)
All checks were successful
PR base guard / Base drift / conflict check (pull_request) Successful in 4s
NixOS Build Check / Scope changed deployable hosts (pull_request) Successful in 21s
Secret Scan / gitleaks scan (pull_request) Successful in 14s
NixOS Build Check / Flake input regression guard (pull_request) Successful in 3s
NixOS Build Check / Worker-scope reaper worker signature (mutation-tested) (pull_request) Successful in 3s
foremerge intent (advisory) all 1 changed path(s) covered by a live foremerge intent
NixOS Build Check / .forgejo/tests python suites (hermetic) (pull_request) Successful in 18s
NixOS Build Check / Hermes dispatcher worktree base (pull_request) Successful in 14s
NixOS Build Check / Hermes terminal timeout tree kill (pull_request) Successful in 40s
NixOS Build Check / foremerge accept-order contract (real binary) (pull_request) Successful in 6s
NixOS Build Check / Build changed host closures (native, one eval) (pull_request) Successful in 5m9s
b37a66537f
Reversible probe, merged only to prove the restart path this card fixes: a
dashboards-ONLY change leaves the grafana unit definition byte-identical, so
the running process can only be restarted by a changed X-Restart-Triggers hash
— which is exactly the mechanism under test. A revert PR follows immediately
and restores now-24h, so the content the owner ends with is what they had.

Not a product decision: do not read this window as a preference. The live check
is GET /api/dashboards/uid/command-tracking on mail, which must report
time.from=now-12h with grafana's ActiveEnterTimestamp inside the deploy window,
with nobody running 'systemctl restart grafana'.
hermes merged commit a73c71da16 into main 2026-10-01 10:37:16 -06:00
hermes deleted branch kb/NCFG-361-probe-dashboard-content 2026-10-01 10:37:16 -06:00
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
ymrtech/nix-config!1384
No description provided.