Hello!
I have blackbox for checking service availability and everything is ok.
I've tried configuring blackbox exporter to monitor ssl certificates for
https endpoints. But unfortunately not able to achieve proper results.
Blackbox exporter:
modules:
http_2xx_example:
prober: http
timeout: 15s
http:
valid_http_versions: ["HTTP/1.1", "HTTP/2"]
valid_status_codes: []
method: GET
headers:
Host: my.host.team
Accept-Language: en-US
http_2xx_whaleapp:
prober: http
timeout: 15s
http:
valid_http_versions: ["HTTP/1.1", "HTTP/2"]
valid_status_codes: []
method: GET
headers:
no_follow_redirects: false
fail_if_ssl: false
fail_if_not_ssl: false
fail_if_body_not_matches_regexp:
- "HTTP OK*"
preferred_ip_protocol: "ip4"
tls_config:
insecure_skip_verify: true
http_post_2xx:
prober: http
timeout: 10s
http:
method: POST
Prometheus:
- job_name: 'blackbox-ssl'
metrics_path: /probe
params:
module: [http_2xx_whaleapp]
static_configs:
- targets:
- "mysite1.com"
- "mysite2.com"
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
replacement: blackbox-exporter:9115
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/24688f75-ec76-47b6-be0c-21f14838e0a0o%40googlegroups.com.