sansae@sansaeubuntu:~$
sansae@sansaeubuntu:~$ docker exec -it alertmanager sh
/alertmanager $ vi /etc/alertmanager/alertmanager.yml
/alertmanager $ cp /etc/alertmanager/alertmanager.yml /etc/alertmanager/alertmanager.yml.orig
/alertmanager $
/alertmanager $ vi /etc/alertmanager/alertmanager.yml |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
global:
smtp_smarthost: 'localhost:25'
smtp_from: 'sooabia@gmail.com'
smtp_auth_username: ''
smtp_auth_password: ''
templates:
- '/etc/alertmanager/temlate/*.tmpl'
route:
repeat_interval: 1h
receiver: operations-team
receivers:
- name: 'operations-team'
email_configs:
- to: 'sooabia@gmail.com'
slack_configs:
- api_url: https://hooks.slack.com/services/T01JVFP1UCCXXXXXX/B020ED9QYUD/RvFVPTzArYTOJhgQqp1kKA3URvFVPTzArYTXXXXXXXX
channel: '#alertmanager-demo'
send_resolved: true
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/alertmanager $ exit
sansae@sansaeubuntu:~$ docker stop alertmanager
alertmanager
sansae@sansaeubuntu:~$ docker start alertmanager
alertmanager
sansae@sansaeubuntu:~$
sansae@sansaeubuntu:~$
sansae@sansaeubuntu:~$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS
NAMES
8177cb714ac6 quay.io/prometheus/alertmanager "/bin/alertmanager -…" 17 minutes ago Up 3 seconds 0.0.0.0:9093->9093/tcp, :::9093->9093/tcp alertmanager
sansae@sansaeubuntu:~$
sansae@sansaeubuntu:~$ curl ifconfig.me
20.41.96.191 |