Exporters provide data Prometheus can scrape and put into its database.
The stack we'll deploy is as follows:
version: "3"
services:
ha-proxy:
image: quay.io/prometheus/haproxy-exporter:${HA_PROXY_TAG:-\
latest}
networks:
- proxy
- monitor
deploy:
labels:
- com.df.notify=true
- com.df.scrapePort=9101
command: -haproxy.scrape-
uri="http://admin:admin@proxy/admin?stats;csv"
cadvisor:
image: google/cadvisor:${CADVISOR_TAG:-latest}
networks:
- monitor
volumes:
- /:/rootfs
- /var/run:/var/run
- /sys:/sys
- /var/lib/docker:/var/lib/docker
deploy:
mode: global
labels:
- com.df.notify=true
- com.df.scrapePort=8080
node-exporter:
image: basi/node-exporter:${NODE_EXPORTER_TAG:-v1.13.0}
networks:
- monitor
environment:
- HOST_HOSTNAME=/etc...