fixed directory-size.sh
This commit is contained in:
parent
52764e5bed
commit
c00a6deb4b
1 changed files with 1 additions and 1 deletions
|
@ -2,4 +2,4 @@
|
|||
|
||||
echo "# HELP node_directory_size_bytes Disk space used by some directories"
|
||||
echo "# TYPE node_directory_size_bytes gauge"
|
||||
du -bsx "$1" | sed "s/\([0-9]*\).*\/\(.*\)/node_directory_size_bytes{name=\"\2\",key=\"$2\"} \1/"
|
||||
du -bsx $1 | sed "s/\([0-9]*\).*\/\(.*\)/node_directory_size_bytes{name=\"\2\",key=\"$2\"} \1/"
|
||||
|
|
Reference in a new issue