Nesse docker meetup de halloween fizemos um DOJO sobre prometheus e vimos como monitorar alguns containers! =)
Prometheus DOJOSebastian Webber
View Slide
https://prometheus.io/
https://grafana.com/
Como rodar o prometheus?$ docker run \-p 9090:9090 \-v $(pwd)/prometheus.yml:/etc/prometheus/prometheus.yml \-d \prom/prometheus
Como rodar o grafana?$ docker run \-d \--name=grafana \-p 3000:3000 \grafana/grafana
version: '3.1'volumes:prometheus_data: {}grafana_data: {}services:prometheus:image: prom/prometheusvolumes:- ./prometheus.yml:/etc/prometheus/prometheus.yml- prometheus_data:/prometheusports:- 9090:9090restart: alwayshttps://bit.ly/2qk0OU7
https://github.com/google/cadvisor
Como rodar o cAdvisor?$ docker run \--volume=/:/rootfs:ro \--volume=/var/run:/var/run:ro \--volume=/sys:/sys:ro \--volume=/var/lib/docker/:/var/lib/docker:ro \--volume=/dev/disk/:/dev/disk:ro \--publish=8080:8080 \--detach=true \--name=cadvisor \google/cadvisor:latest
https://github.com/prometheus/node_exporter
Como rodar o node_exporter?$ docker run -d \--net="host" \--pid="host" \-v "/:/host:ro,rslave" \quay.io/prometheus/node-exporter \--path.rootfs /host
Vamos parar de passartrabalho?https://github.com/stefanprodan/dockprom