Skip to content

fix(observability): exclude the range host's resting state from host alerts - #1714

Merged
Gerrrt merged 3 commits into
mainfrom
gerrrt/gandalf-range-alert-exclusions
Nov 24, 2026
Merged

Gerrrt merged 3 commits into
mainfrom
gerrrt/gandalf-range-alert-exclusions

Conversation

@Gerrrt

@Gerrrt Gerrrt commented Nov 24, 2026

Copy link
Copy Markdown
Owner

What changed

Excludes gandalf's deliberately-stopped range guests and its range SSD's known bad-sector count from the estate's general host alerts, using the mechanisms the estate already has. Tags were applied on the box; this PR records the SSD baseline and documents both as onboarding steps.

Why

Onboarding gandalf to monitoring (#1651) added the agent and range.rules.yaml, but not the two exclusions for a host whose guests are meant to be stopped. The general host.rules.yaml rules then fired on gandalf's resting state — 5 warnings: HypervisorGuestStopped ×4 (the three targets + ragnarok, all stopped by design) and SmartDriveBadSectors ×1 (the range SSD's known 8 reallocated sectors, stable since 2026-11-13, ~90% endurance left).

  • Targets 100/101/102 tagged disposable, ragnarok (130) tagged on-demand (ADR-0071 / ADR-0079), which HypervisorGuestStopped excludes.
  • render-smart-baselines.sh gets a gandalf row (8 sectors), so SmartDriveBadSectors accepts the known count and still pages if it grows.
  • build-the-playground.md Monitoring the host now lists both as onboarding steps, so a rebuild sets them.

Blast radius

Observability only. Guest tags were applied live (qm set); no network/firewall change.

  • No change to network segmentation or firewall rules
  • No new port published to a VLAN that could not already reach the service
  • No credential added outside secrets/*.sops.yaml

Verification

  • python3 scripts/check_docs.py passes; shellcheck clean
  • render-smart-baselines.sh --print emits …baseline{host="gandalf",slot="pci-0000:00:17.0-ata-1"} 8
  • On the box: homelab_guest_disposable=1 on 100/101/102, homelab_guest_on_demand=1 on 130
  • Docs updated (render-smart-baselines.sh, build-the-playground.md, changelog.md)

🤖 Generated with Claude Code

…alerts

Onboarding gandalf to monitoring (#1651) added the agent and range.rules.yaml
but not the two exclusions the estate already has for a host whose guests are
meant to be stopped. HypervisorGuestStopped fired on the three targets and
ragnarok; SmartDriveBadSectors on the range SSD's known 8 reallocated sectors.

Tag the range guests (disposable on the targets, on-demand on ragnarok -- done
on the box, ADR-0071/0079) and record the SSD baseline in
render-smart-baselines.sh. build-the-playground.md's Monitoring section now
lists both as onboarding steps.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 24, 2026 17:08
@Gerrrt
Gerrrt enabled auto-merge (squash) November 24, 2026 17:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The retained targets need on-demand tags rather than disposable tags to avoid age-based warnings, and ragnarok’s declared tags must preserve on-demand across pipeline applies.

2 open issues
What changed in this PR

This PR follows up on gandalf’s monitoring onboarding by accounting for intentionally stopped range guests and the range SSD’s known bad-sector count.

Changes:

  • Adds an eight-sector SMART baseline while preserving alerts for increases.
  • Documents guest tags and SSD baselining as monitoring onboarding steps.
  • Records the alert exclusions in the changelog.
File Description
scripts/​render-smart-baselines.sh Adds gandalf’s SSD baseline and supporting drive notes.
docs/​runbooks/​build-the-playground.md Documents guest-tag commands and SSD baseline requirements.
docs/​changelog.md Records the five warnings and the exclusions applied.

Review effort: Balanced

Comment thread docs/runbooks/build-the-playground.md Resolved
Comment thread docs/runbooks/build-the-playground.md Resolved
Gerrrt and others added 2 commits November 24, 2026 09:17
…for ragnarok

Review on #1714, both correct:
- disposable on the targets would fire DisposableGuestOutlived once they pass
  fourteen days from creation (host.rules.yaml), since the targets are reverted
  and kept, not destroyed. All four range guests are on-demand instead.
- ragnarok is tofu-managed and the guest module ignores only startup/started,
  not tags, so a hand-set on-demand is undone on the next apply. Declare it in
  tofu/guests.tf beside attack and range.

Re-tagged 100/101/102 on-demand on the box; runbook and changelog updated.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…alert-exclusions

# Conflicts:
#	docs/changelog.md
@Gerrrt
Gerrrt merged commit 16372b5 into main Nov 24, 2026
9 checks passed
@Gerrrt
Gerrrt deleted the gerrrt/gandalf-range-alert-exclusions branch November 24, 2026 17:45
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.

2 participants