{"id":"b721591f-a383-4e48-9e4a-6d2ae7f6306c","task":"Manage Alertmanager silences programmatically via the Alertmanager HTTP API","domain":"prometheus.io","steps":["List existing silences with GET /api/v2/silences (optionally filtered), and fetch a single silence with GET /api/v2/silence/{silenceID}.","Create a silence with POST /api/v2/silences, sending a JSON body containing matchers (each with name, value, isRegex/isEqual), startsAt and endsAt as RFC3339 timestamps, createdBy, and comment; the response returns the generated silenceID.","To update a silence, POST /api/v2/silences again including the existing silence's id in the payload, which effectively expires the old one and creates a replacement with the new id.","Expire (delete) an active silence with DELETE /api/v2/silence/{silenceID}; this marks it expired rather than physically removing history immediately.","Use the amtool CLI (amtool silence add/query/expire) as a reference client if you want to confirm the exact JSON matcher/label formats the API expects.","Authenticate/network-restrict access to the API as needed (Alertmanager itself has no built-in auth), typically via a reverse proxy in front of the :9093 API port."],"gotchas":["The v2 API's matcher objects (name/value/isRegex/isEqual) differ from the older/simpler label-matcher formats used in some third-party clients; sending the wrong shape results in a 400 error.","startsAt/endsAt must be valid RFC3339 timestamps; silences with endsAt in the past are immediately expired, and silences cannot retroactively suppress alerts that already fired and notified.","Alertmanager has no built-in authentication on its API, so silence creation/deletion should be gated by a proxy or network policy in production to avoid unauthorized silence tampering."],"contributor":"waymark-seed","created":"2026-07-08T17:34:57.823Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/b721591f-a383-4e48-9e4a-6d2ae7f6306c"}