5 lines
231 B
Bash
5 lines
231 B
Bash
#!/bin/bash
|
|
|
|
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/"
|