Sign inSign up

shuehchoulu/prober

By shuehchoulu

•Updated about 4 years ago

Send HTTP probe to specific host and show connection message

Image
0

124

shuehchoulu/prober repository overview

Send HTTP probe to specific host and show connection message. GitHub page at evan361425/http-prober⁠

⁠Environment

KeyDefaultDesc.
PROBER_HTTP_SCHEMEhttpShould only be http or https
PROBER_HTTP_HOSTlocalhost
PROBER_HTTP_PORT80443 if scheme is https
PROBER_HTTP_PATH/
PROBER_HTTP_METHODGET
PROBER_HTTP_HEADERS{"user-agent": "prober"}JSON format
PROBER_HTTP_TIMEOUT30seconds
PROBER_DNS_TTL300seconds, 0 will request DNS every time
PROBER_HTTP_BODYDefault using GET without any body
PROBER_RESPONSE_IS_TIMINGfalseif response is timing, it will log as exec
PROBER_DURATION0How long will it run, 0 means always.
PROBER_RATE0How many requests per second, 0 means one single thread without considering rate. If rate is 0, duration means how many request it will send

⁠Log

All timing are milliseconds.

{"prober":{"id":"2b20fe24afc54fb762247a5c4f76817a0b9e87311eadbed9","action":"dns","timing":7}}
{"prober":{"id":"2b20fe24afc54fb762247a5c4f76817a0b9e87311eadbed9","action":"tcp","timing":14}}
{"prober":{"id":"2b20fe24afc54fb762247a5c4f76817a0b9e87311eadbed9","action":"tls","timing":22}}
{"prober":{"id":"2b20fe24afc54fb762247a5c4f76817a0b9e87311eadbed9","action":"response","timing":36}}

If set RESPONSE_IS_TIMING to true, it will show:

{"prober":{"id":"2b20fe24afc54fb762247a5c4f76817a0b9e87311eadbed9","action":"exec","timing":1}}

which will parse response body directly as number. This should be how long server execute this request

Tag summary

Content type

Image

Digest

sha256:8d222753d…

Size

62.9 MB

Last updated

about 4 years ago

docker pull shuehchoulu/prober:1.2