fixed directory-size.sh

master
Samuel Philipp 1 year ago
parent 52764e5bed
commit c00a6deb4b
Signed by: samuel-p
GPG Key ID: 2AD495D17760CB4E
  1. 2
      node_exporter/directory-size.sh

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

Loading…
Cancel
Save