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
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" \
--mount "type=bind,source=/,target=/rootfs" \
prom/node-exporter:0.12.0 \
-collector...