| 1234567891011121314151617181920212223242526272829 | #!/usr/bin/env bashset -o errexitset -o pipefailcurl=$(which curl)if [ ! -x "$curl" ] ; then    echo "curl must be in path for this test to run"    exit 1fipromtool=$(which promtool)if [ ! -x "$promtool" ] ; then    echo "promtool must be in path for this test to run"    exit 1fipull/tests/integration/sample-server&sample_server_pid=$!function stop_server {  echo "Stopping sample-server"  kill -9 $sample_server_pid}trap stop_server EXITsleep 1"$curl" -s http://localhost:8080/metrics | "$promtool" check metrics
 |