I wanna skip the certificates valid,so I add *insecure_skip_verify: true *in 
the blackbox.yml,but it's still get reponse code 0 rather than 200,I try to 
*curl  
-I 
http://10.1.1.161:9115/probe?module=http_2xx&target=https://10.101.1.112:8850*,log
 
tips me that I got unknown or invalid certificate,so I use  *curl   -k 
http://10.1.1.161:9115/probe?module=http_2xx&target=https://10.101.1.112:8850*,it
 
can access the target web page,so I have no idea what the promblem is.
*blackbox.yml:*
```
modules:
  http_2xx:
    prober: http
    timeout: 5s
    http:
      valid_http_versions: ["HTTP/1.1", "HTTP/2.0"]
      method: GET
      preferred_ip_protocol: "ip4"
      ip_protocol_fallback: false
      no_follow_redirects: false
      fail_if_ssl: false
      fail_if_not_ssl: false
      tls_config:
         nsecure_skip_verify: true
```
*Prometheus.yml:*
```
static_configs:
      - targets:
          - https://tableau.myservice.com:8850
    relabel_configs:
      - source_labels: [__address__]
        target_label: __param_target
      - source_labels: [__param_target]
        target_label: instance
      - target_label: __address__
        # Blackbox Exporter 
        replacement: 10.1.1.161:9115
      - source_labels: [__param_target]
        target_label: service
        replacement: 'service management'  # https://10.101.1.112:8850
        regex: '.*tableau\.myservice\.com:8850.*'
```

-- 
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 visit 
https://groups.google.com/d/msgid/prometheus-users/54ede757-9cac-4ec2-823b-702808c3305fn%40googlegroups.com.

Reply via email to