Belajar Sendiri

Commands

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=page

Who gets a severity=page alert?

$ amtool config routes show --config.file=alertmanager.yml

Draw the whole routing tree.