fixed directory-size.sh

This commit is contained in:
Samuel Philipp 2021-05-16 00:47:06 +02:00
parent 52764e5bed
commit c00a6deb4b
Signed by: samuel-p
GPG key ID: 2AD495D17760CB4E

View file

@ -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/"