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
More on Best Practices & Rapid-Fire Commands
What are your top SLO and alerting best practices?IntermediateWhat are your top incident-management best practices?IntermediateRapid-fire: Prometheus and promtool commands every SRE should know.BeginnerRapid-fire: k6 commands and flags.BeginnerRapid-fire: Chaos Mesh and kubectl commands for chaos experiments.IntermediateRapid-fire: commands to check service health quickly during an incident on Kubernetes.Intermediate