Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ild@ild:~/sandbox/test_health_checks/always_fail_exporter$ docker ps
- CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
- 40e605db1106 miketest "/otelsvc --config=/…" 5 seconds ago Up 4 seconds romantic_mendeleev
- ild@ild:~/sandbox/test_health_checks/always_fail_exporter$ docker exec -it 40e605db1106 /bin/bash
- root@40e605db1106:/go# curl 0.0.0.0:9893/health
- root@40e605db1106:/go# curl -v 0.0.0.0:9893/health
- * Trying 0.0.0.0:9893...
- * Connected to 0.0.0.0 (127.0.0.1) port 9893 (#0)
- > GET /health HTTP/1.1
- > Host: 0.0.0.0:9893
- > User-Agent: curl/7.74.0
- > Accept: */*
- >
- * Mark bundle as not supporting multiuse
- < HTTP/1.1 500 Internal Server Error
- < Date: Tue, 28 Jun 2022 14:15:23 GMT
- < Content-Length: 0
- <
- * Connection #0 to host 0.0.0.0 left intact
- root@40e605db1106:/go# curl -v 0.0.0.0:9893/health
- * Trying 0.0.0.0:9893...
- * Connected to 0.0.0.0 (127.0.0.1) port 9893 (#0)
- > GET /health HTTP/1.1
- > Host: 0.0.0.0:9893
- > User-Agent: curl/7.74.0
- > Accept: */*
- >
- * Mark bundle as not supporting multiuse
- < HTTP/1.1 200 OK
- < Date: Tue, 28 Jun 2022 14:15:28 GMT
- < Content-Length: 0
- <
- * Connection #0 to host 0.0.0.0 left intact
- root@40e605db1106:/go# curl -v 0.0.0.0:9893/health
- * Trying 0.0.0.0:9893...
- * Connected to 0.0.0.0 (127.0.0.1) port 9893 (#0)
- > GET /health HTTP/1.1
- > Host: 0.0.0.0:9893
- > User-Agent: curl/7.74.0
- > Accept: */*
- >
- * Mark bundle as not supporting multiuse
- < HTTP/1.1 200 OK
- < Date: Tue, 28 Jun 2022 14:15:30 GMT
- < Content-Length: 0
- <
- * Connection #0 to host 0.0.0.0 left intact
- root@40e605db1106:/go# curl -v 0.0.0.0:9893/health
- * Trying 0.0.0.0:9893...
- * Connected to 0.0.0.0 (127.0.0.1) port 9893 (#0)
- > GET /health HTTP/1.1
- > Host: 0.0.0.0:9893
- > User-Agent: curl/7.74.0
- > Accept: */*
- >
- * Mark bundle as not supporting multiuse
- < HTTP/1.1 200 OK
- < Date: Tue, 28 Jun 2022 14:15:33 GMT
- < Content-Length: 0
- <
- * Connection #0 to host 0.0.0.0 left intact
- root@40e605db1106:/go# curl -v 0.0.0.0:9893/health
- * Trying 0.0.0.0:9893...
- * Connected to 0.0.0.0 (127.0.0.1) port 9893 (#0)
- > GET /health HTTP/1.1
- > Host: 0.0.0.0:9893
- > User-Agent: curl/7.74.0
- > Accept: */*
- >
- * Mark bundle as not supporting multiuse
- < HTTP/1.1 200 OK
- < Date: Tue, 28 Jun 2022 14:16:54 GMT
- < Content-Length: 0
- <
- * Connection #0 to host 0.0.0.0 left intact
- root@40e605db1106:/go#
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement