Exporting system wide metrics

We'll start with the Node Exporter (https://github.com/prometheus/node_exporter) service. It'll export different types of metrics related to our servers:

A note to Windows users For mounts used in the next command to work, you have to stop Git Bash from altering file system paths. Set this environment variable: export MSYS_NO_PATHCONV=1 This chapter contains many docker service create commands that use mounts. Before you execute those commands, please ensure that the environment variable MSYS_NO_PATHCONV exists and is set to 1: echo $MSYS_NO_PATHCONV
docker service create \    --name node-exporter \    --mode global \    --network proxy \     --mount "type=bind,source=/proc,target=/host/proc" \    --mount "type=bind,source=/sys,target=/host/sys" ...

Get The DevOps 2.1 Toolkit: Docker Swarm now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.