simple go binary that exposes the following services
/env
(prints all environment variables)/ping
(returns "pong\n" and HTTP 200)/hostname
(prints hostname)/metrics
(prints Prometheus metrics))/version
(prints running version of testapp binary)/connect
(performs a HTTP GET to the URL configured in$CONNECT_URL
and prints the result. Ignores certs)/log
(logs "this is a log statement" with levelinfo
)/logerror
(logs "this is a error log statement" with levelerror
)
the docker container has the following binaries
nc
, curl
, dig
, nmap
, socat
, hey, vim
, tcpdump
, traceroute
, strace
, iperf
, telnet
Usage:
--bind-address string ip:port where http requests are served (default ":8080")
--connect-url string URL to connect to with /connect (default "https://google.com")
--graceful-shutdown-wait int when receiving interrupt signal, it will wait this amount of seconds before shutting down server
--ping-response string what to respond when pinged (default "pong\n")