May 2019
Intermediate to advanced
442 pages
11h 36m
English
This sub-command allows you to query the Alertmanager cluster for currently firing alerts, which can be achieved as follows:
vagrant@alertmanager02:~$ amtool alert --alertmanager.url http://alertmanager02:9093Alertname Starts At Summary deadmanswitch 2019-03-31 14:49:45 UTC InstanceDown 2019-03-31 15:48:30 UTC
Another feature this sub-command has is the ability to create alerts on demand. This can come in useful for testing purposes. For example, let's create a new alert named ExampleAlert with the label example="amtool":
vagrant@alertmanager02:~$ amtool alert add alertname="ExampleAlert" ...
Read now
Unlock full access