Linux technical support - [email protected]

prometheus docker device mapper monitoring


DOCKER_DM_USED=`docker info | grep 'Data Space Used' | awk '{print $4}' | sed 's/GB//g'`

DOCKER_DM_TOTAL=`docker info | grep 'Data Space Total' | awk '{print $4}' | sed 's/GB//g'`

echo "docker_devicemapper_used_percent $DOCKER_DM_USED_PERCENT" > /tmp/prom/docker.prom

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>