Skip to content

Firing Alerts Simulation

Lyes S edited this page Jun 11, 2022 · 5 revisions

Table Of Contents

Docker Compose UP

cd docker-compose/

docker-compose -f service-registry.yml -f network-device-inventory.yml -f monitoring.yml -f gateway.yml --env-file .env  up -d

lyes-s ( β—₯β—£_β—’β—€ ) ~ $ docker container ls

CONTAINER ID   IMAGE                                          COMMAND                  CREATED          STATUS                    PORTS                                                        NAMES
d37e4a930990   nginx:latest                                   "/docker-entrypoint.…"   10 minutes ago   Up 10 minutes             0.0.0.0:80->80/tcp                                           nginx
d24097ace37b   grafana/grafana:latest                         "/run.sh"                10 minutes ago   Up 10 minutes             3000/tcp                                                     grafana
3e7f5a270dbb   prom/prometheus:latest                         "/bin/prometheus --c…"   10 minutes ago   Up 10 minutes             9090/tcp                                                     prometheus
08a1805da240   prometheuscommunity/postgres-exporter:latest   "/bin/postgres_expor…"   10 minutes ago   Up 10 minutes             9187/tcp                                                     postgres-exporter
1bec95490ad2   lsefiane/network-device-inventory:latest       "java -jar network-d…"   10 minutes ago   Up 10 minutes (healthy)   8080/tcp                                                     network-device-inventory
69394de0f661   postgres:latest                                "docker-entrypoint.s…"   10 minutes ago   Up 10 minutes (healthy)   5432/tcp                                                     postgreSQL
0d6ee425eb17   prom/alertmanager:latest                       "/bin/alertmanager -…"   10 minutes ago   Up 10 minutes             9093/tcp                                                     alertmanager
e36c1400ad61   gcr.io/cadvisor/cadvisor:latest                "/usr/bin/cadvisor -…"   10 minutes ago   Up 10 minutes (healthy)   8080/tcp                                                     cadvisor
b7a4243a80ae   consul:latest                                  "docker-entrypoint.s…"   10 minutes ago   Up 10 minutes             8300-8302/tcp, 8500/tcp, 8301-8302/udp, 8600/tcp, 8600/udp   consul
6d358300da0e   prom/node-exporter                             "/bin/node_exporter …"   10 minutes ago   Up 10 minutes             9100/tcp                                                     node-exporter

Docker Instance Down Simulation

  • In this case we simulate 02 instances down : cadvisor and consul.
lyes-s ( β—₯β—£_β—’β—€ ) ~ $ docker stop cadvisor consul

cadvisor
consul

Firing Alerts

Slack Alerts : [Active] Instance Down

Slack Alerts : [Resolved] Instance Down

Clone this wiki locally