Skip to Main Content
The DevOps 2.2 Toolkit
book

The DevOps 2.2 Toolkit

by Viktor Farcic
March 2018
Intermediate to advanced content levelIntermediate to advanced
360 pages
7h 52m
English
Packt Publishing
Content preview from The DevOps 2.2 Toolkit

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The DevOps 2.4 Toolkit

The DevOps 2.4 Toolkit

Viktor Farcic

Publisher Resources

ISBN: 9781788991278Supplemental Content