alertmanager + webhook send alarm messages (using port 587):
webhook installation:
go get github.com/prometheus/alertmanager/examples/webhook
Start webhook (default port is TCP 5001):
go/bin/webhook
webhookmail.py download URL (need to manually copy the contents):
https://github.com/youerning/blog/tree/master/prometheus
Using (falcon python modules need to be installed, step is abbreviated):
we webhookmail.py
Change the configuration inside the mailbox, smtp port 587 used, the last service port 5002 can be changed (default 80), ip is 127.0.0.1 (default 0.0.0.0)
python webhookmail.py
we alert the manager / alertmanager.yml
The adjustment web.hook url to http://127.0.0.1:5002/ (default is 5001)
Start alertmanager