I used Prometheus and node exporter a while ago and had access to node_filesystem_* metrics to monitor disk usage but I've recently fired it up on some other servers (Ubuntu Linux) and those metrics seem to be missing.
According to this https://github.com/prometheus/node_exporter those metrics should be enabled by default and available from Linux hosts. What might be causing them to not appear?
To clarify, I can get metrics for CPU, memory etc so it's not that node exporter just isn't working.
Pay your attention to
/etc/default/prometheus-node-exporter
: for e. g., recently I realised Ubuntu's (18.04) package cuts out by default all disks statistics:Pretty weird as to me, but at least can be adjusted.
Well it seems that v0.11 (which is all you get from Ubuntu 16.04 repos) doesn't have that functionality. Ubuntu 18.04 repos contain v0.15 (still not recent) but there you do get the functionality. No PPA available. Plenty of instructions to manually install newer versions or you can use my Ansible role:
With the systemd service template: