Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
yongtang committed Oct 31, 2023
1 parent cbffb79 commit 2bec912
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_prometheus/prometheus_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ action=$1

if [ "$action" == "start" ]; then
cat <<EOF >.coredns
.:1053 {
.:8053 {
whoami
prometheus
}
Expand Down Expand Up @@ -54,14 +54,14 @@ EOF
docker run -d --rm --name=tensorflow-io-prometheus --net=host -v $PWD/.prometheus:/etc/prometheus/prometheus.yml prom/prometheus

# wait for coredns and prometheus up
sleep 5
sleep 25

dig @localhost -p 1053 www.google.com
dig @localhost -p 1053 www.google.com
dig @localhost -p 1053 www.google.com
dig @localhost -p 1053 www.google.com
dig @localhost -p 1053 www.google.com
dig @localhost -p 1053 www.google.com
dig @localhost -p 8053 www.google.com
dig @localhost -p 8053 www.google.com
dig @localhost -p 8053 www.google.com
dig @localhost -p 8053 www.google.com
dig @localhost -p 8053 www.google.com
dig @localhost -p 8053 www.google.com

else
docker rm -f tensorflow-io-coredns
Expand Down

0 comments on commit 2bec912

Please sign in to comment.