Created
June 19, 2021 15:29
-
-
Save cnaude/cba2c5fdae4b1317d66abab55a3a6356 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for D in $(ls /sys/block/|grep ^sd); do | |
DEVS="${DEVS} --device=/dev/${D}" | |
done | |
export SCRUTINY_WEB=true | |
export SCRUTINY_COLLECTOR=true | |
docker run -it --rm -d -p 8081:8080 -v /run/udev:/run/udev:ro \ | |
--cap-add SYS_RAWIO \ | |
$DEVS \ | |
--name scrutiny analogj/scrutiny | |
echo docker exec -it $(docker ps | grep -F analogj/scrutiny | awk '{print $1}') /bin/bash -c \"scrutiny-collector-metrics run\" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment