Repository navigation
docs(observability): alert delivery — Slack pager + GitHub record, GitOps pointers - #600
Merged
Merged
Conversation
…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
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 inbpalermo/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:
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 — neitherlatestnorv0.11is a multi-arch index. Replaced withghcr.io/pfnet-research/alertmanager-to-github(genuine index, digest-pinned); the wrong port (9393) and path (/v1/receiver) went with it.The
alertmanager-github-receiver.yamlmanifest 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_rulesdeliberatelyThey suppressed the per-node gauge alerts whenever
MeshDNSMetricsAbsentfires. But that rule isabsent(aether_mesh_dns_ready), which only fires once every series is gone — at which pointmin by (node) (...) == 0yields 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 triggerabsent()at all.What this file is now
mesh-dns-alerts.ymlstays the source of truth for the rules; the README says where they're deployed from, and records the two traps worth remembering — theWatchdogdead-man's-switch route (expr: vector(1), must stay on"null"now thatgithubis the default receiver) and the arm64 image constraint.Also removes the contradictory
helm upgradeinstruction, keeping its useful half:rule_filesalready points atalerting_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