msemochkin

blacbox_debug

Jul 31st, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. Logs for the probe:
  2. ts=2018-07-31T08:56:23.016821278Z caller=main.go:116 module=http_2xx_regex target=https://some_url.ru level=info msg="Beginning probe" probe=http timeout_seconds=4.5
  3. ts=2018-07-31T08:56:23.017004232Z caller=utils.go:42 module=http_2xx_regex target=https://some_url.ru level=info msg="Resolving target address" preferred_ip_protocol=ip4
  4. ts=2018-07-31T08:56:23.029074299Z caller=utils.go:65 module=http_2xx_regex target=https://some_url.ru level=info msg="Resolved target address" ip=1.1.1.1
  5. ts=2018-07-31T08:56:23.029127215Z caller=http.go:282 module=http_2xx_regex target=https://some_url.ru level=info msg="Making HTTP request" url=https://[1.1.1.1] host=some_url.ru
  6. ts=2018-07-31T08:56:23.036323215Z caller=http.go:300 module=http_2xx_regex target=https://some_url.ru level=info msg="Received HTTP response" status_code=200
  7. ts=2018-07-31T08:56:23.036576191Z caller=http.go:65 module=http_2xx_regex target=https://some_url.ru level=error msg="Body did not match regular expression" regexp="(Сделано на платформе)"
  8. ts=2018-07-31T08:56:23.036612528Z caller=http.go:354 module=http_2xx_regex target=https://some_url.ru level=info msg="Response timings for roundtrip" roundtrip=0 start=2018-07-31T04:56:23.029232622-04:00 dnsDone=2018-07-31T04:56:23.029232622-04:00 connectDone=2018-07-31T04:56:23.029622633-04:00 gotConn=2018-07-31T04:56:23.03472264-04:00 responseStart=2018-07-31T04:56:23.036275363-04:00 end=2018-07-31T04:56:23.036316504-04:00
  9. ts=2018-07-31T08:56:23.036680192Z caller=main.go:129 module=http_2xx_regex target=https://some_url.ru level=error msg="Probe failed" duration_seconds=0.019790125
  10.  
  11.  
  12.  
  13. Metrics that would have been returned:
  14. # HELP probe_dns_lookup_time_seconds Returns the time taken for probe dns lookup in seconds
  15. # TYPE probe_dns_lookup_time_seconds gauge
  16. probe_dns_lookup_time_seconds 0.012081082
  17. # HELP probe_duration_seconds Returns how long the probe took to complete in seconds
  18. # TYPE probe_duration_seconds gauge
  19. probe_duration_seconds 0.019790125
  20. # HELP probe_failed_due_to_regex Indicates if probe failed due to regex
  21. # TYPE probe_failed_due_to_regex gauge
  22. probe_failed_due_to_regex 1
  23. # HELP probe_http_content_length Length of http content response
  24. # TYPE probe_http_content_length gauge
  25. probe_http_content_length -1
  26. # HELP probe_http_duration_seconds Duration of http request by phase, summed over all redirects
  27. # TYPE probe_http_duration_seconds gauge
  28. probe_http_duration_seconds{phase="connect"} 0.00039005
  29. probe_http_duration_seconds{phase="processing"} 0.001552659
  30. probe_http_duration_seconds{phase="resolve"} 0.012081082
  31. probe_http_duration_seconds{phase="tls"} 0.005490249
  32. probe_http_duration_seconds{phase="transfer"} 4.1104e-05
  33. # HELP probe_http_redirects The number of redirects
  34. # TYPE probe_http_redirects gauge
  35. probe_http_redirects 0
  36. # HELP probe_http_ssl Indicates if SSL was used for the final redirect
  37. # TYPE probe_http_ssl gauge
  38. probe_http_ssl 1
  39. # HELP probe_http_status_code Response HTTP status code
  40. # TYPE probe_http_status_code gauge
  41. probe_http_status_code 200
  42. # HELP probe_http_version Returns the version of HTTP of the probe response
  43. # TYPE probe_http_version gauge
  44. probe_http_version 1.1
  45. # HELP probe_ip_protocol Specifies whether probe ip protocol is IP4 or IP6
  46. # TYPE probe_ip_protocol gauge
  47. probe_ip_protocol 4
  48. # HELP probe_ssl_earliest_cert_expiry Returns earliest SSL cert expiry in unixtime
  49. # TYPE probe_ssl_earliest_cert_expiry gauge
  50. probe_ssl_earliest_cert_expiry 1.540102202e+09
  51. # HELP probe_success Displays whether or not the probe was a success
  52. # TYPE probe_success gauge
  53. probe_success 0
  54.  
  55.  
  56.  
  57. Module configuration:
  58. prober: http
  59. timeout: 5s
  60. http:
  61. preferred_ip_protocol: ip4
  62. method: GET
  63. fail_if_not_matches_regexp:
  64. - (Сделано на платформе)
Advertisement
Add Comment
Please, Sign In to add comment