mtulio / go-url

go-url is a cool URL tester that discovers all endpoints (IP address) and makes HTTP/S requests to each. It also can push metrics to the Pushgateway.
Apache License 2.0
5 stars 0 forks source link

feat/watch: add watcher option. #14 #19

Closed mtulio closed 2 years ago

mtulio commented 2 years ago

Self described, repeat requests every period. Default is disabled.

go run cmd/go-url/*.go -dns -watch-period 20 -watch-interval 2 'https://multicluster-test-s2rs4-ext-bdc4371d715efc34.elb.us-east-1.amazonaws.com:6443/readyz'
#> Reading config from Param
#> Found [1] URLs to test, starting...

URL=[(multicluster-test-s2rs4-ext-bd) https://54.166.101.111:6443/readyz] [  OK] : [200 OK] [681 ms] [DNS 40 ms]
URL=[(multicluster-test-s2rs4-ext-bd) https://44.197.225.14:6443/readyz] [  OK] : [200 OK] [681 ms] [DNS 40 ms]
URL=[(multicluster-test-s2rs4-ext-bd) https://3.216.58.210:6443/readyz] [  OK] : [200 OK] [681 ms] [DNS 40 ms]
URL=[(multicluster-test-s2rs4-ext-bd) https://34.232.122.66:6443/readyz] [  OK] : [200 OK] [681 ms] [DNS 40 ms]
URL=[(multicluster-test-s2rs4-ext-bd) https://34.206.195.101:6443/readyz] [  OK] : [200 OK] [681 ms] [DNS 40 ms]
Total time taken: 722ms
Watcher waiting 2s, of period 20s

issue ref https://github.com/mtulio/go-url/issues/14

mtulio commented 2 years ago

/close https://github.com/mtulio/go-url/issues/14