Silence active alert

Create a silence to mute alert notifications during maintenance

amtool silence add --alertmanager.url=http://alertmanager:9093 alertname=<name> --duration=2h --comment='Maintenance'

tool
prometheus30 commands
tags
alertmanagermonitoring

More prometheus commands

  • amtool silence query --alertmanager.url=http://alertmanager:9093

    Show all active silences in Alertmanager

  • amtool silence expire <id> --alertmanager.url=http://alertmanager:9093

    Immediately end an active silence

  • amtool check-config alertmanager.yml

    Validate Alertmanager configuration file

  • amtool alert query --alertmanager.url=http://alertmanager:9093

    Show all firing alerts in Alertmanager

  • curl -X POST http://prometheus:9090/-/reload

    Hot-reload Prometheus configuration without restart

all 30 prometheus commands