Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign updisk space usage metrics #3684
Comments
anarcat
changed the title
(disk) space usage metrics
disk space usage metrics
Jan 15, 2018
This comment has been minimized.
This comment has been minimized.
|
I have just noticed this excellent tutorial which partly covers the requirement here, although it is not shipped out of the box. The only way I could find to do this (and it's in tsdb) is with a crude patch that walks the filesystem, which is not much faster than the above implementation. The patch is in anarcat/tsdb@2ba6cb8 but i'm worried it will hurt performance. We could assume the disk cache will be primed and that listing directories in the chunks storage will be fast enough, but I'm not familiar enough with the new storage engine to assert that confidently. |
anarcat
added a commit
to anarcat/node_exporter
that referenced
this issue
Jan 16, 2018
This comment has been minimized.
This comment has been minimized.
|
It should be fast, but I think it'd be better to be tracking this internally. |
This comment has been minimized.
This comment has been minimized.
|
yeah well, i couldn't figure out how to do this - the Chunk objects seem to be variable length so they're not useful, and i suspect only some of those are kept in memory anyways... |
anarcat
added a commit
to anarcat/node_exporter
that referenced
this issue
Jan 16, 2018
anarcat
added a commit
to anarcat/node_exporter
that referenced
this issue
Jan 16, 2018
SuperQ
added a commit
to prometheus/node_exporter
that referenced
this issue
Feb 21, 2018
simonpasquier
added
kind/enhancement
component/local storage
labels
Sep 6, 2018
This comment has been minimized.
This comment has been minimized.
|
Relates to prometheus/tsdb#343 |
anarcat commentedJan 15, 2018
•
edited
I have recently made some tests with prometheus, and one of my key concerns is disk space usage. Because there is no downsampling (planned? prometheus/tsdb#56, #1381), I worry that altering the retention period to a much larger range (say one year) will take an abusive amount of disk space (and hurt performance but that's another question).
I have kept an eye on disk space by running
du -sch /var/lib/prometheusby hand, and I know others are running prometheus on its own partition which makes monitoring easier, but i would like to avoid complicating the deployment...Shouldn't there be a metric exposed by prometheus about the disk space it uses? it probably knows how many chunks it has - how hard would it be to expand that to the actual disk space in use?
(edit: i found out about
process_resident_memory_byteswhich seems to be giving a good metric for memory usage).Thanks!