Last active
September 2, 2020 16:32
-
-
Save frbayart/2e0ea5fe597cc1ca873a7939b20bc9cf to your computer and use it in GitHub Desktop.
blackbox-exporter with custom CA version=0.17.0, branch=HEAD, revision=1bc768014cf6815f7e9d694e0292e77dd10f3235
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
modules: | |
icmp_ipv4: | |
prober: icmp | |
timeout: 5s | |
icmp: | |
preferred_ip_protocol: ip4 | |
http_2xx: | |
prober: http | |
timeout: 5s | |
http: | |
method: GET | |
valid_status_codes: [] # Defaults to 2xx | |
no_follow_redirects: true | |
http_2xx_untrust: | |
prober: http | |
timeout: 5s | |
http: | |
method: GET | |
no_follow_redirects: false | |
fail_if_ssl: false | |
fail_if_not_ssl: false | |
preferred_ip_protocol: ip4 | |
tls_config: | |
insecure_skip_verify: false | |
valid_status_codes: [] # Defaults to 2xx | |
http_2xx_cacert: | |
prober: http | |
timeout: 5s | |
http: | |
method: GET | |
no_follow_redirects: false | |
fail_if_ssl: false | |
preferred_ip_protocol: ip4 | |
tls_config: | |
ca_file: /config/kensuio_vault_ca.crt | |
valid_status_codes: [] # Defaults to 2xx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
level=info ts=2020-09-02T16:25:23.108Z caller=main.go:212 msg="Starting blackbox_exporter" version="(version=0.17.0, branch=HEAD, revision=1bc768014cf6815f7e9d694e0292e77dd10f3235)" | |
level=info ts=2020-09-02T16:25:23.108Z caller=main.go:213 msg="Build context" (gogo1.14.4,userroot@626fb3899f41,date20200619-11:54:41)=(MISSING) | |
level=info ts=2020-09-02T16:25:23.108Z caller=main.go:225 msg="Loaded config file" | |
level=info ts=2020-09-02T16:25:23.109Z caller=main.go:369 msg="Listening on address" address=:9115 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# docker-start | |
docker rm -f blackbox_exporter || : | |
docker run \ | |
--name=blackbox_exporter \ | |
--restart=always \ | |
-p 9115:9115 \ | |
-d \ | |
-v /srv/blackbox/etc:/config \ | |
prom/blackbox-exporter:latest --config.file=/config/blackbox.yml | |
# prom/blackbox-exporter:v0.17.0 --config.file=/config/blackbox.yml | |
# prom/blackbox-exporter:v0.16.0 --config.file=/config/blackbox.yml | |
# prom/blackbox-exporter:master --config.file=/config/blackbox.yml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s "100.64.64.64:9115/probe?module=http_2xx&target=https://www.qa3.xxx.com/&debug=true" | grep -v \# | |
Logs for the probe: | |
ts=2020-09-02T16:28:39.184794414Z caller=main.go:304 module=http_2xx target=https://www.qa3.xxx.com/ level=info msg="Beginning probe" probe=http timeout_seconds=5 | |
ts=2020-09-02T16:28:39.18490338Z caller=http.go:323 module=http_2xx target=https://www.qa3.xxx.com/ level=info msg="Resolving target address" ip_protocol=ip6 | |
ts=2020-09-02T16:28:39.277237748Z caller=http.go:323 module=http_2xx target=https://www.qa3.xxx.com/ level=info msg="Resolved target address" ip=172.23.132.71 | |
ts=2020-09-02T16:28:39.277439935Z caller=client.go:252 module=http_2xx target=https://www.qa3.xxx.com/ level=info msg="Making HTTP request" url=https://172.23.132.71/ host=www.qa3.xxx.com | |
ts=2020-09-02T16:28:39.378374365Z caller=main.go:119 module=http_2xx target=https://www.qa3.xxx.com/ level=error msg="Error for HTTP request" err="Get \"https://172.23.132.71/\": x509: certificate signed by unknown authority" | |
ts=2020-09-02T16:28:39.37840231Z caller=main.go:119 module=http_2xx target=https://www.qa3.xxx.com/ level=info msg="Response timings for roundtrip" roundtrip=0 start=2020-09-02T16:28:39.277649409Z dnsDone=2020-09-02T16:28:39.277649409Z connectDone=2020-09-02T16:28:39.294527562Z gotConn=0001-01-01T00:00:00Z responseStart=0001-01-01T00:00:00Z end=0001-01-01T00:00:00Z | |
ts=2020-09-02T16:28:39.378422615Z caller=main.go:304 module=http_2xx target=https://www.qa3.xxx.com/ level=error msg="Probe failed" duration_seconds=0.19358259 | |
Metrics that would have been returned: | |
probe_dns_lookup_time_seconds 0.092430385 | |
probe_duration_seconds 0.19358259 | |
probe_failed_due_to_regex 0 | |
probe_http_content_length 0 | |
probe_http_duration_seconds{phase="connect"} 0 | |
probe_http_duration_seconds{phase="processing"} 0 | |
probe_http_duration_seconds{phase="resolve"} 0.092430385 | |
probe_http_duration_seconds{phase="tls"} 0 | |
probe_http_duration_seconds{phase="transfer"} 0 | |
probe_http_redirects 0 | |
probe_http_ssl 0 | |
probe_http_status_code 0 | |
probe_http_uncompressed_body_length 0 | |
probe_http_version 0 | |
probe_ip_addr_hash 3.602496277e+09 | |
probe_ip_protocol 4 | |
probe_success 0 | |
Module configuration: | |
prober: http | |
timeout: 5s | |
http: | |
ip_protocol_fallback: true | |
no_follow_redirects: true | |
method: GET | |
tcp: | |
ip_protocol_fallback: true | |
icmp: | |
ip_protocol_fallback: true | |
dns: | |
ip_protocol_fallback: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@dragonfly01:/srv/blackbox# curl -s "100.64.64.64:9115/probe?module=http_2xx_cacert&target=https://www.qa3.xxx.com/&debug=true" | grep -v \# | |
Logs for the probe: | |
ts=2020-09-02T16:30:32.611931985Z caller=main.go:304 module=http_2xx_cacert target=https://www.qa3.xxx.com/ level=info msg="Beginning probe" probe=http timeout_seconds=5 | |
ts=2020-09-02T16:30:32.612273948Z caller=http.go:323 module=http_2xx_cacert target=https://www.qa3.xxx.com/ level=info msg="Resolving target address" ip_protocol=ip4 | |
ts=2020-09-02T16:30:32.693380494Z caller=http.go:323 module=http_2xx_cacert target=https://www.qa3.xxx.com/ level=info msg="Resolved target address" ip=172.23.132.71 | |
ts=2020-09-02T16:30:32.695316891Z caller=client.go:252 module=http_2xx_cacert target=https://www.qa3.xxx.com/ level=info msg="Making HTTP request" url=https://172.23.132.71/ host=www.qa3.xxx.com | |
ts=2020-09-02T16:30:32.904165833Z caller=main.go:119 module=http_2xx_cacert target=https://www.qa3.xxx.com/ level=info msg="Received HTTP response" status_code=200 | |
ts=2020-09-02T16:30:32.9138025Z caller=main.go:119 module=http_2xx_cacert target=https://www.qa3.xxx.com/ level=info msg="Response timings for roundtrip" roundtrip=0 start=2020-09-02T16:30:32.695650559Z dnsDone=2020-09-02T16:30:32.695650559Z connectDone=2020-09-02T16:30:32.7133094Z gotConn=2020-09-02T16:30:32.863226767Z responseStart=2020-09-02T16:30:32.904108784Z end=2020-09-02T16:30:32.913688568Z | |
ts=2020-09-02T16:30:32.914015595Z caller=main.go:304 module=http_2xx_cacert target=https://www.qa3.xxx.com/ level=info msg="Probe succeeded" duration_seconds=0.301947193 | |
Metrics that would have been returned: | |
probe_dns_lookup_time_seconds 0.081149347 | |
probe_duration_seconds 0.301947193 | |
probe_failed_due_to_regex 0 | |
probe_http_content_length 2197 | |
probe_http_duration_seconds{phase="connect"} 0.017658955 | |
probe_http_duration_seconds{phase="processing"} 0.040882065 | |
probe_http_duration_seconds{phase="resolve"} 0.081149347 | |
probe_http_duration_seconds{phase="tls"} 0.167576319 | |
probe_http_duration_seconds{phase="transfer"} 0.009579739 | |
probe_http_last_modified_timestamp_seconds 1.598938151e+09 | |
probe_http_redirects 0 | |
probe_http_ssl 1 | |
probe_http_status_code 200 | |
probe_http_uncompressed_body_length 2197 | |
probe_http_version 2 | |
probe_ip_addr_hash 3.602496277e+09 | |
probe_ip_protocol 4 | |
probe_ssl_earliest_cert_expiry 1.601985118e+09 | |
probe_ssl_last_chain_expiry_timestamp_seconds 1.601985118e+09 | |
probe_success 1 | |
probe_tls_version_info{version="TLS 1.2"} 1 | |
Module configuration: | |
prober: http | |
timeout: 5s | |
http: | |
preferred_ip_protocol: ip4 | |
ip_protocol_fallback: true | |
method: GET | |
tls_config: | |
ca_file: /config/kensuio_vault_ca.crt | |
insecure_skip_verify: false | |
tcp: | |
ip_protocol_fallback: true | |
icmp: | |
ip_protocol_fallback: true | |
dns: | |
ip_protocol_fallback: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@dragonfly01:/srv/blackbox# curl -s "100.64.64.64:9115/probe?module=http_2xx_untrust&target=https://www.qa3.xxx.com/&debug=true" | grep -v \# | |
Logs for the probe: | |
ts=2020-09-02T16:29:39.311012647Z caller=main.go:304 module=http_2xx_untrust target=https://www.qa3.xxx.com/ level=info msg="Beginning probe" probe=http timeout_seconds=5 | |
ts=2020-09-02T16:29:39.311120996Z caller=http.go:323 module=http_2xx_untrust target=https://www.qa3.xxx.com/ level=info msg="Resolving target address" ip_protocol=ip4 | |
ts=2020-09-02T16:29:39.389199236Z caller=http.go:323 module=http_2xx_untrust target=https://www.qa3.xxx.com/ level=info msg="Resolved target address" ip=172.23.132.71 | |
ts=2020-09-02T16:29:39.389432277Z caller=client.go:252 module=http_2xx_untrust target=https://www.qa3.xxx.com/ level=info msg="Making HTTP request" url=https://172.23.132.71/ host=www.qa3.xxx.com | |
ts=2020-09-02T16:29:39.486700538Z caller=main.go:119 module=http_2xx_untrust target=https://www.qa3.xxx.com/ level=error msg="Error for HTTP request" err="Get \"https://172.23.132.71/\": x509: certificate signed by unknown authority" | |
ts=2020-09-02T16:29:39.486767609Z caller=main.go:119 module=http_2xx_untrust target=https://www.qa3.xxx.com/ level=info msg="Response timings for roundtrip" roundtrip=0 start=2020-09-02T16:29:39.389598477Z dnsDone=2020-09-02T16:29:39.389598477Z connectDone=2020-09-02T16:29:39.407223301Z gotConn=0001-01-01T00:00:00Z responseStart=0001-01-01T00:00:00Z end=0001-01-01T00:00:00Z | |
ts=2020-09-02T16:29:39.486819728Z caller=main.go:304 module=http_2xx_untrust target=https://www.qa3.xxx.com/ level=error msg="Probe failed" duration_seconds=0.1757629 | |
Metrics that would have been returned: | |
probe_dns_lookup_time_seconds 0.07819963 | |
probe_duration_seconds 0.1757629 | |
probe_failed_due_to_regex 0 | |
probe_http_content_length 0 | |
probe_http_duration_seconds{phase="connect"} 0 | |
probe_http_duration_seconds{phase="processing"} 0 | |
probe_http_duration_seconds{phase="resolve"} 0.07819963 | |
probe_http_duration_seconds{phase="tls"} 0 | |
probe_http_duration_seconds{phase="transfer"} 0 | |
probe_http_redirects 0 | |
probe_http_ssl 0 | |
probe_http_status_code 0 | |
probe_http_uncompressed_body_length 0 | |
probe_http_version 0 | |
probe_ip_addr_hash 3.602496277e+09 | |
probe_ip_protocol 4 | |
probe_success 0 | |
Module configuration: | |
prober: http | |
timeout: 5s | |
http: | |
preferred_ip_protocol: ip4 | |
ip_protocol_fallback: true | |
method: GET | |
tcp: | |
ip_protocol_fallback: true | |
icmp: | |
ip_protocol_fallback: true | |
dns: | |
ip_protocol_fallback: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment