Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

Disk space #84

Closed
ruudboon opened this issue Dec 22, 2018 · 2 comments
Closed

Disk space #84

ruudboon opened this issue Dec 22, 2018 · 2 comments

Comments

@ruudboon
Copy link

Thank you for this awesome project. It runs smooth on my swarm. Only one thing doesn't work for me. The disk space always show N/A. Is there a way to debug this?

@mwolf1989
Copy link

I think the mapping in the default dashboard is wrong.

sum(node_filesystem_size_bytes{mountpoint="/"} * on(instance) group_left(node_name) node_meta{node_id=~"$node_id"})

must be sum(node_filesystem_size_bytes{mountpoint="/rootfs"} * on(instance) group_left(node_name) node_meta{node_id=~"$node_id"})

because the mapping in the docker file is:
- /proc:/host/proc:ro - /sys:/host/sys:ro - /:/rootfs:ro

when I changed this I get useful data

@PMudra
Copy link
Contributor

PMudra commented Jan 3, 2019

I have two nodes currently and I experience the same problem with one of my nodes. For the other one both "/" and "/rootfs" show the same size:

Element Value
node_filesystem_size_bytes{device="/dev/mapper/iot--02--vg-root",fstype="ext4",instance="10.0.7.140:9100",job="node-exporter",mountpoint="/rootfs"} 16586760192
node_filesystem_size_bytes{device="/dev/sda1",fstype="ext2",instance="10.0.7.140:9100",job="node-exporter",mountpoint="/rootfs/boot"} 246755328
node_filesystem_size_bytes{device="/dev/sda1",fstype="ext4",instance="10.0.7.147:9100",job="node-exporter",mountpoint="/rootfs"} 18888736768
node_filesystem_size_bytes{device="none",fstype="aufs",instance="10.0.7.147:9100",job="node-exporter",mountpoint="/"} 18888736768

It seems to be correct to switch the queries to mountpoint="/rootfs" as @mwolf1989 stated.

Bencey added a commit to geek-cookbook/geek-cookbook that referenced this issue May 3, 2019
funkypenguin pushed a commit to geek-cookbook/geek-cookbook that referenced this issue May 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants