Repository navigation
fix(observability): exclude the range host's resting state from host alerts - #1714
Merged
Merged
Conversation
…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>
There was a problem hiding this comment.
🟡 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
…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
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.

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
gandalfto monitoring (#1651) added the agent andrange.rules.yaml, but not the two exclusions for a host whose guests are meant to be stopped. The generalhost.rules.yamlrules then fired ongandalf's resting state — 5 warnings:HypervisorGuestStopped×4 (the three targets +ragnarok, all stopped by design) andSmartDriveBadSectors×1 (the range SSD's known 8 reallocated sectors, stable since 2026-11-13, ~90% endurance left).disposable,ragnarok(130) taggedon-demand(ADR-0071 / ADR-0079), whichHypervisorGuestStoppedexcludes.render-smart-baselines.shgets agandalfrow (8 sectors), soSmartDriveBadSectorsaccepts the known count and still pages if it grows.build-the-playground.mdMonitoring 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.secrets/*.sops.yamlVerification
python3 scripts/check_docs.pypasses;shellcheckcleanrender-smart-baselines.sh --printemits…baseline{host="gandalf",slot="pci-0000:00:17.0-ata-1"} 8homelab_guest_disposable=1on 100/101/102,homelab_guest_on_demand=1on 130render-smart-baselines.sh,build-the-playground.md,changelog.md)🤖 Generated with Claude Code