Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Logs for the probe:
- 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
- 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
- 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
- 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
- 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
- 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="(Сделано на платформе)"
- 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
- 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
- Metrics that would have been returned:
- # HELP probe_dns_lookup_time_seconds Returns the time taken for probe dns lookup in seconds
- # TYPE probe_dns_lookup_time_seconds gauge
- probe_dns_lookup_time_seconds 0.012081082
- # HELP probe_duration_seconds Returns how long the probe took to complete in seconds
- # TYPE probe_duration_seconds gauge
- probe_duration_seconds 0.019790125
- # HELP probe_failed_due_to_regex Indicates if probe failed due to regex
- # TYPE probe_failed_due_to_regex gauge
- probe_failed_due_to_regex 1
- # HELP probe_http_content_length Length of http content response
- # TYPE probe_http_content_length gauge
- probe_http_content_length -1
- # HELP probe_http_duration_seconds Duration of http request by phase, summed over all redirects
- # TYPE probe_http_duration_seconds gauge
- probe_http_duration_seconds{phase="connect"} 0.00039005
- probe_http_duration_seconds{phase="processing"} 0.001552659
- probe_http_duration_seconds{phase="resolve"} 0.012081082
- probe_http_duration_seconds{phase="tls"} 0.005490249
- probe_http_duration_seconds{phase="transfer"} 4.1104e-05
- # HELP probe_http_redirects The number of redirects
- # TYPE probe_http_redirects gauge
- probe_http_redirects 0
- # HELP probe_http_ssl Indicates if SSL was used for the final redirect
- # TYPE probe_http_ssl gauge
- probe_http_ssl 1
- # HELP probe_http_status_code Response HTTP status code
- # TYPE probe_http_status_code gauge
- probe_http_status_code 200
- # HELP probe_http_version Returns the version of HTTP of the probe response
- # TYPE probe_http_version gauge
- probe_http_version 1.1
- # HELP probe_ip_protocol Specifies whether probe ip protocol is IP4 or IP6
- # TYPE probe_ip_protocol gauge
- probe_ip_protocol 4
- # HELP probe_ssl_earliest_cert_expiry Returns earliest SSL cert expiry in unixtime
- # TYPE probe_ssl_earliest_cert_expiry gauge
- probe_ssl_earliest_cert_expiry 1.540102202e+09
- # HELP probe_success Displays whether or not the probe was a success
- # TYPE probe_success gauge
- probe_success 0
- Module configuration:
- prober: http
- timeout: 5s
- http:
- preferred_ip_protocol: ip4
- method: GET
- fail_if_not_matches_regexp:
- - (Сделано на платформе)
Advertisement
Add Comment
Please, Sign In to add comment