As part of T327435 we have been creating some grafana dashboards to show disk space usage on gitlab-runners.
This included using grafana-cloud to do this for gitlab-runners in wmcs.
https://grafana-cloud.wikimedia.org/d/FrErwP0Vk/gitlab-runner-overview?orgId=1&from=now-7d&to=no
While doing so we noticed the mount point that interests us most, /var/lib/docker is missing from exporter data.
example, it is shown in df -h:
dzahn@runner-1029:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 12G 0 12G 0% /dev tmpfs 2.4G 620K 2.4G 1% /run /dev/sdb1 20G 7.4G 12G 40% / tmpfs 12G 0 12G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda 40G 7.1G 30G 20% /var/lib/docker /dev/sdb15 124M 11M 114M 9% /boot/efi tmpfs 2.4G 0 2.4G 0% /run/user/0 tmpfs 2.4G 0 2.4G 0% /run/user/2075
But when asking the exporter for metrics it's notably missing, while the other mount points are there:
dzahn@runner-1029:~$ curl 172.16.1.135:9100/metrics | grep "node_filesystem_avail_bytes" % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0# HELP node_filesystem_avail_bytes Filesystem space available to non-root users in bytes. # TYPE node_filesystem_avail_bytes gauge node_filesystem_avail_bytes{device="/dev/sdb1",fstype="ext4",mountpoint="/"} 1.2129357824e+10 node_filesystem_avail_bytes{device="/dev/sdb15",fstype="vfat",mountpoint="/boot/efi"} 1.18601728e+08 node_filesystem_avail_bytes{device="tmpfs",fstype="tmpfs",mountpoint="/run"} 2.521239552e+09 node_filesystem_avail_bytes{device="tmpfs",fstype="tmpfs",mountpoint="/run/lock"} 5.24288e+06 node_filesystem_avail_bytes{device="tmpfs",fstype="tmpfs",mountpoint="/run/user/0"} 2.521870336e+09 node_filesystem_avail_bytes{device="tmpfs",fstype="tmpfs",mountpoint="/run/user/2075"} 2.521870336e+09 100 214k 0 214k 0 0 2211k 0 --:--:-- --:--:-- --:--:-- 2211k
Is this being excluded somewhere and can it be added, please?