Skip to main content

Workflow: Maintenance Silence Lifecycle

Step-by-step guide for creating safe silences during planned maintenance — with mandatory preview, policy validation, and clean expiration.


When to Use

Use this workflow when:

  • Deploying a new version and need to mute expected alerts
  • Performing infrastructure maintenance (node upgrades, database migrations)
  • Silencing known-noisy alerts during investigation
  • Creating time-boxed maintenance windows

Journey


Step-by-Step

StepActionToolKey Parameters
1Preview blast radius (mandatory)am_preview_silence(matchers=[{"name": "service", "value": "checkout", "isRegex": false, "isEqual": true}])Returns affected_alert_count, receivers, warning_flag
2Validate policyam_validate_silence_policy(matchers=[...], duration_minutes=120, comment="Deploy v2.3", created_by="alice")Returns allowed/violations
3Create silenceam_create_silence(matchers=[...], duration_minutes=120, comment="Deploy v2.3", created_by="alice")Returns silence_id
4Confirm activeam_list_silences(state="active")Verify silence appears
5Extend if neededam_update_silence(silence_id="<id>", add_minutes=30)Returns new silence_id
6Expire when doneam_expire_silence(silence_id="<id>")Reactivates notifications

Guided Prompt: Use am-maintenance-silence-guided for the full step-by-step flow.


Safety Guardrails

GuardrailDescriptionConfiguration
Duration CapMax silence duration (default 24h)AM_MAX_SILENCE_MINUTES
Blast Radius WarningWarns if silence affects ≥ N alertsAM_SILENCE_WARNING_THRESHOLD
Duplicate DetectionBlocks creating equivalent active silencesBuilt-in
Policy ValidationChecks comment, creator, matcher breadtham_validate_silence_policy
Preview Dry-RunShows affected alerts/receivers before creationam_preview_silence

Silence Scope Control

The am_silence_alert helper provides an LLM-friendly way to silence a specific alert:

ScopeMatchers UsedUse Case
instanceAll alert labelsNarrowest — silences exactly this alert instance
service (default)alertname + service + envRecommended — silences this alert type for this service
envenv onlyBroadest — silences everything in the environment

Next Steps