Interview Prep/SRE & Reliability/Best Practices & Rapid-Fire Commands

Rapid-fire: Alertmanager and amtool commands.

BeginnerConceptBest Practices & Rapid-Fire Commands
Answer
amtool check-config alertmanager.yml
amtool --alertmanager.url=http://localhost:9093 alert query severity=page
amtool --alertmanager.url=http://localhost:9093 silence add alertname=CheckoutErrorBudgetBurnFast \
  --duration=1h --comment="INC-482 rollback in progress" --author="oncall"
amtool --alertmanager.url=http://localhost:9093 silence query
amtool --alertmanager.url=http://localhost:9093 silence expire <silence-id>
amtool config routes test --config.file=alertmanager.yml severity=page slo=checkout-availability
All SRE & Reliability questions

More on Best Practices & Rapid-Fire Commands