amtool silence add --duration 2h --comment 'maintenance' --author alice

Category: Monitoring & Observability

amtool silence add --duration 2h --comment 'maintenance' --author alice

Create a silence for a fixed duration

Suppresses alert notifications for the given duration, here two hours, until it expires on its own. You must also pass label matchers to select which alerts are silenced, for example alertname=HighCPU. The --comment and --author fields are required by default and show up in the Alertmanager UI.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.