Skip to content

docs(observability): alert delivery — Slack pager + GitHub record, GitOps pointers - #600

Merged
bpalermo merged 5 commits into
mainfrom
docs/alertmanager-github-receiver
Aug 2, 2026
Merged

bpalermo merged 5 commits into
mainfrom
docs/alertmanager-github-receiver

Conversation

@bpalermo

@bpalermo bpalermo commented Jul 26, 2026 •

Copy link
Copy Markdown
Owner

Alerting is now actually deployed, so this PR stops being a draft of a plan and becomes an accurate pointer to the implementation.

What changed since the first draft

When this was written I hadn't yet established that talos-main is Flux GitOps-managed. The original draft documented a hand-applied manifest and a kubectl create secret — both of which Flux would either fight or ignore. The real implementation now lives in bpalermo/k8s-talos-main: #3 (rules, merged) and #4 (delivery).

Two things in the draft were also plainly wrong, and both would have failed at deploy time:

  • It shipped measurementlab/alertmanager-github-receiver, which is published amd64-only. Every talos-main node is arm64, so that Deployment could never have scheduled. I checked the registry manifests directly — neither latest nor v0.11 is a multi-arch index. Replaced with ghcr.io/pfnet-research/alertmanager-to-github (genuine index, digest-pinned); the wrong port (9393) and path (/v1/receiver) went with it.
  • The "no Alertmanager deployed" note was stale. It is deployed, running, and backed by a 1Gi PVC.

The alertmanager-github-receiver.yaml manifest is deleted rather than fixed — a manifest in this repo that nothing applies is exactly the kind of thing that rots into a trap.

Dropped the drafted inhibit_rules deliberately

They suppressed the per-node gauge alerts whenever MeshDNSMetricsAbsent fires. But that rule is absent(aether_mesh_dns_ready), which only fires once every series is gone — at which point min by (node) (...) == 0 yields no series and cannot fire either. They'd look protective and do nothing. The partial-shedding case they were really aimed at (some nodes vanish) doesn't trigger absent() at all.

What this file is now

mesh-dns-alerts.yml stays the source of truth for the rules; the README says where they're deployed from, and records the two traps worth remembering — the Watchdog dead-man's-switch route (expr: vector(1), must stay on "null" now that github is the default receiver) and the arm64 image constraint.

Also removes the contradictory helm upgrade instruction, keeping its useful half: rule_files already points at alerting_rules.yml, so populating that key is the whole change.

Net diff is this one file. The permission allowlist that was riding this branch has been moved to the gitignored .claude/settings.local.json — those entries are personal workflow preferences, not project policy.

🤖 Generated with Claude Code

bpalermo and others added 3 commits July 26, 2026 12:51
…path

The seven mesh-DNS alert rules have been authored but fire nowhere: there is no
Prometheus operator, no Grafana alerting sidecar, and no Alertmanager. Rules
that route to nobody are decoration.

Adds the receiver Deployment/Service/ServiceAccount and the two Prometheus
values changes that close the gap. Two things the live cluster made cheaper
than expected: prometheus.yml's `rule_files` ALREADY lists
/etc/config/alerting_rules.yml, so loading the rules is a single values key;
and the chart wires `alerting.alertmanagers` itself once the subchart is on.

Documents three decisions rather than leaving them implicit: group_by is
alertname ONLY (the receiver titles issues from GroupLabels.alertname, so
grouping by node would open one issue per node per alert); send_resolved is
required for -enable-auto-close to ever fire; and MeshDNSMetricsAbsent inhibits
the per-node gauge alerts, since a fleet-wide telemetry gap is one finding, not
five.

Also records the ordering constraint: four of the seven rules key on gauges,
and this Prometheus is OTLP-receive-only, so a shedding collector makes a
healthy node indistinguishable from a broken one. Enable the collector headroom
first or the alerts train everyone to ignore them.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR
The earlier draft in this PR was written before it was established that
talos-main is Flux GitOps-managed, so it documented a hand-applied manifest and
a `kubectl create secret` -- both of which Flux would fight or ignore.

Two things in it were also simply wrong:

  - It shipped measurementlab/alertmanager-github-receiver, which is published
    amd64-ONLY. Every talos-main node is arm64, so that Deployment could never
    have scheduled. Replaced by pfnet-research/alertmanager-to-github (real
    multi-arch index), and the wrong port/path went with it.

  - The "no Alertmanager deployed" note was stale: it is deployed, running, and
    backed by a 1Gi PVC.

Dropped the drafted inhibit_rules rather than carrying them over. They suppress
the per-node gauge alerts when MeshDNSMetricsAbsent fires, but that rule is
`absent(aether_mesh_dns_ready)`, which only fires once EVERY series is gone --
at which point `min by (node) (...) == 0` yields no series and cannot fire
either. The rules would look protective and do nothing.

The real implementation is k8s-talos-main #3 (rules) and #4 (delivery). This
file keeps mesh-dns-alerts.yml as the source of truth and now says where it is
deployed from, plus the Watchdog and arm64 traps.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR
It contradicted the GitOps section added in the previous commit -- those values
are reconciled by Flux from k8s-talos-main, so a manual `helm upgrade` would be
reverted on the next reconcile. Kept the useful half: rule_files already points
at alerting_rules.yml, so populating that key is the whole change.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR
@bpalermo bpalermo changed the title docs(observability): draft the Alertmanager -> GitHub issue delivery path docs(observability): point alert delivery at the GitOps repo Jul 26, 2026
bpalermo and others added 2 commits July 26, 2026 14:23
These entries are personal workflow preferences, not project policy, so they
belong in the gitignored .claude/settings.local.json rather than being committed
for everyone. Merged into the existing local file (deduped -- kubectl logs/
describe/top, helm get/template and the grafana read-only MCP tools were new;
the rest were already there).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01EioJVuoepwStjHoRLB52WR
@bpalermo bpalermo changed the title docs(observability): point alert delivery at the GitOps repo docs(observability): alert delivery — Slack pager + GitHub record, GitOps pointers Aug 2, 2026
@bpalermo
bpalermo merged commit f6b5230 into main Aug 2, 2026
15 checks passed
@bpalermo
bpalermo deleted the docs/alertmanager-github-receiver branch August 2, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant