Can the ‘Silences’ feature on the Alertmanager UI be used to silence new alerts before they are sent to a receiver? This would be useful while performing an upgrade in an environment.
My alerts contain a label 'env' (to identify a given environment) and I can add a silence rule via the UI. The problem is that it will only silence AFTER the first occurrence of an alert in the 'env'/environment. In the meantime, an alert has been sent to the Alertmanager receiver.
I have also tried changing values in the alertmanager.conf for
group_interval
from 5m to 10s, and group_wait
from 30s to 60s.
Alternatively, I could update the receiver when there is a match for the 'env' label...but I would prefer to use the 'Silences' feature (either in UI or API - have not tried using the API to do silence).
Any inputs would be appreciated.
(Using version 0.14.0 of Alertmanager)