O'Reilly logo

The DevOps 2.2 Toolkit by Viktor Farcic

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying exporters

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=8080node-exporter:  image: basi/node-exporter:${NODE_EXPORTER_TAG:-v1.13.0}  networks:    - monitor  environment: - HOST_HOSTNAME=/etc/host_hostname ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required