amtool config routes test --config.file=<file>
amtool config routes test --config.file=<file> <label=value>…
Risk: Safe
What it does
Says which receiver gets an alert with these labels. Nothing is sent.
When to use it
When you change routes and want to be sure the page reaches the right person.
Example
$ amtool config routes test --config.file=alertmanager.yml severity=pageWho gets a severity=page alert?
$ amtool config routes show --config.file=alertmanager.ymlDraw the whole routing tree.
Learn it in: Alertmanager: route, group, silence · Official docs