Skip to content

Instantly share code, notes, and snippets.

@cnaude
Created June 19, 2021 15:29
Show Gist options
  • Save cnaude/cba2c5fdae4b1317d66abab55a3a6356 to your computer and use it in GitHub Desktop.
Save cnaude/cba2c5fdae4b1317d66abab55a3a6356 to your computer and use it in GitHub Desktop.
#!/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