node exporter

62 views
Skip to first unread message

tarun....@gmail.com

unread,
Mar 8, 2021, 2:07:11 PM3/8/21
to Prometheus Users
I've a file system 

Filesystem     1K-blocks     Used Available Use% Mounted on
devtmpfs        48292172        0  48292172   0% /dev
tmpfs           48318196        0  48318196   0% /dev/shm
tmpfs           48318196   345288  47972908   1% /run
tmpfs           48318196        0  48318196   0% /sys/fs/cgroup
/dev/nvme0n1p1 104846316 16042508  88803808  16% /
/dev/nvme1n1p1 528311736 86104376 415347536  18% /opt/xxx
tmpfs            9663640        0   9663640   0% /run/user/0
tmpfs            9663640        0   9663640   0% /run/user/1002

But, the metric node_filesystem_size_bytes from node-exporter only gives metric  for
device '/dev/nvme0n1p1'. I also want the metric for other devices too. 

Matthias Rampke

unread,
Mar 11, 2021, 2:07:11 AM3/11/21
to tarun....@gmail.com, Prometheus Users
Node exporter has flags to filter out certain file systems and mountpoints, by default these include tmpfs. Check node_exporter --help for details, and set the flags according to your needs.

/MR

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/9a265903-f0b1-45bd-9c56-3dea68150d9en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages