I have successfully silenced an alert for a node that's currently down (and will be for a while before we have time to replace it physically).
While I assume the silence will stop the alert from re-surfacing in the slack-channel I'd also like to get rid of it on the grafana dashboard we run over the top of prometheus. Here's the query for the respective tile in grafana.
sum(ALERTS{alertname="NodeDown", alertstate="firing"})
My questions is whether there's a keyword that I can replace "firing" with, "not silenced" doesn't work (neither does "silenced " ;}) that will only show me machines whose alerts aren't silenced.
Silences exist entirely in the Alertmanager, Prometheus doesn't know anything about them. Thus there's no metric that'll let you know that the alert is silenced inside Prometheus.