Advertisement
Guest User

Untitled

a guest
Jun 28th, 2022
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. ild@ild:~/sandbox/test_health_checks/always_fail_exporter$ docker ps
  2. CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
  3. 40e605db1106 miketest "/otelsvc --config=/…" 5 seconds ago Up 4 seconds romantic_mendeleev
  4.  
  5. ild@ild:~/sandbox/test_health_checks/always_fail_exporter$ docker exec -it 40e605db1106 /bin/bash
  6. root@40e605db1106:/go# curl 0.0.0.0:9893/health
  7. root@40e605db1106:/go# curl -v 0.0.0.0:9893/health
  8. * Trying 0.0.0.0:9893...
  9. * Connected to 0.0.0.0 (127.0.0.1) port 9893 (#0)
  10. > GET /health HTTP/1.1
  11. > Host: 0.0.0.0:9893
  12. > User-Agent: curl/7.74.0
  13. > Accept: */*
  14. >
  15. * Mark bundle as not supporting multiuse
  16. < HTTP/1.1 500 Internal Server Error
  17. < Date: Tue, 28 Jun 2022 14:15:23 GMT
  18. < Content-Length: 0
  19. <
  20. * Connection #0 to host 0.0.0.0 left intact
  21. root@40e605db1106:/go# curl -v 0.0.0.0:9893/health
  22. * Trying 0.0.0.0:9893...
  23. * Connected to 0.0.0.0 (127.0.0.1) port 9893 (#0)
  24. > GET /health HTTP/1.1
  25. > Host: 0.0.0.0:9893
  26. > User-Agent: curl/7.74.0
  27. > Accept: */*
  28. >
  29. * Mark bundle as not supporting multiuse
  30. < HTTP/1.1 200 OK
  31. < Date: Tue, 28 Jun 2022 14:15:28 GMT
  32. < Content-Length: 0
  33. <
  34. * Connection #0 to host 0.0.0.0 left intact
  35. root@40e605db1106:/go# curl -v 0.0.0.0:9893/health
  36. * Trying 0.0.0.0:9893...
  37. * Connected to 0.0.0.0 (127.0.0.1) port 9893 (#0)
  38. > GET /health HTTP/1.1
  39. > Host: 0.0.0.0:9893
  40. > User-Agent: curl/7.74.0
  41. > Accept: */*
  42. >
  43. * Mark bundle as not supporting multiuse
  44. < HTTP/1.1 200 OK
  45. < Date: Tue, 28 Jun 2022 14:15:30 GMT
  46. < Content-Length: 0
  47. <
  48. * Connection #0 to host 0.0.0.0 left intact
  49. root@40e605db1106:/go# curl -v 0.0.0.0:9893/health
  50. * Trying 0.0.0.0:9893...
  51. * Connected to 0.0.0.0 (127.0.0.1) port 9893 (#0)
  52. > GET /health HTTP/1.1
  53. > Host: 0.0.0.0:9893
  54. > User-Agent: curl/7.74.0
  55. > Accept: */*
  56. >
  57. * Mark bundle as not supporting multiuse
  58. < HTTP/1.1 200 OK
  59. < Date: Tue, 28 Jun 2022 14:15:33 GMT
  60. < Content-Length: 0
  61. <
  62. * Connection #0 to host 0.0.0.0 left intact
  63. root@40e605db1106:/go# curl -v 0.0.0.0:9893/health
  64. * Trying 0.0.0.0:9893...
  65. * Connected to 0.0.0.0 (127.0.0.1) port 9893 (#0)
  66. > GET /health HTTP/1.1
  67. > Host: 0.0.0.0:9893
  68. > User-Agent: curl/7.74.0
  69. > Accept: */*
  70. >
  71. * Mark bundle as not supporting multiuse
  72. < HTTP/1.1 200 OK
  73. < Date: Tue, 28 Jun 2022 14:16:54 GMT
  74. < Content-Length: 0
  75. <
  76. * Connection #0 to host 0.0.0.0 left intact
  77. root@40e605db1106:/go#
  78. exit
  79.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement