Answers: <p>maybe <code>tls_config</code> setting needs to be set</p>
  <pre><code> scheme: https
      tls_config:
        insecure_skip_verify: true
  </code></pre>
  
Answers: CC BY-SA 4.0
Answers: 2023-11-14T05:58:48.367Z
Answers: Thank you for your response, @mikequentel. I appreciate your assistance, I've tried adding the configuration both in blackbox.yml and prometheus.yml, but it doesn't seem to be working.
Answers: AwsmOfficial
Answers: CC BY-SA 4.0
Answers: 2024-04-11T22:17:05.507Z
Answers: @AwsmOfficial the blackbox exporter is on the same server as prometheus?
Answers: mikequentel
Answers: CC BY-SA 4.0
Answers: 2023-11-13T20:33:56.667Z
Answers: 2023-11-13T20:33:56.667Z
Answers: mikequentel
Body: <p>I'm currently utilizing Prometheus with Blackbox Exporter for monitoring our services. However, I've encountered an issue where one of our external services is showing probe_success as 0, despite being accessible when tested with curl.</p>
  <p><em><strong>All my other services are being monitored correctly.</strong></em></p>
  <p>I would appreciate any assistance in troubleshooting and resolving this discrepancy.
  Thank you.
  prometheus config</p>
  <pre><code>  - job_name: 'ExternalPartners_ICMP'
      scrape_interval: 15s
      metrics_path: /probe
      params:
        module: [http_2xx]  # Look for a HTTP 200 response.
      static_configs:
        - targets:
          - https://*/*.asmx  #GazProm
      relabel_configs:
        - source_labels: [__address__]
          target_label: __param_target
        - source_labels: [__param_target]
          target_label: instance
        - target_label: __address__
          replacement: 127.0.0.1:9115  # The blackbox exporter's real hostname:port.
  </code></pre>
  <p>blackbox config</p>
  <pre><code>http_2xx:
      prober: http
      timeout: 5s
      http:
        valid_http_versions:
        - HTTP/1.1
        - HTTP/2
        - HTTP/2.0
        valid_status_codes: [200]
        method: GET
        no_follow_redirects: false
        fail_if_ssl: false
        fail_if_not_ssl: true
        preferred_ip_protocol: &quot;ip4&quot;
        ip_protocol_fallback: true
        tls_config:
          insecure_skip_verify: true
  </code></pre>
  
Comments: CC BY-SA 4.0
Comments: 2023-12-16T03:11:57.540Z
Comments: What is shown in blackbox when you [query it directly](https://github.com/prometheus/blackbox_exporter#checking-the-results) with `&debug=true`?
Comments: markalex
Tags: <prometheus>
Title: Prometheus/BlackBox Exporter probe_success 0 but service still running
UserDisplayName: AwsmOfficial
ThreadText: # Prometheus/BlackBox Exporter probe_success 0 but service still running
  
  (Asked by: username_0 on 2023-11-13)
  
  I'm currently utilizing Prometheus with Blackbox Exporter for monitoring our services. However, I've encountered an issue where one of our external services is showing probe\_success as 0, despite being accessible when tested with curl.
  
  ***All my other services are being monitored correctly.***
  
  I would appreciate any assistance in troubleshooting and resolving this discrepancy.
  Thank you.
  prometheus config
  
  ```
    - job_name: 'ExternalPartners_ICMP'
      scrape_interval: 15s
      metrics_path: /probe
      params:
        module: [http_2xx]  # Look for a HTTP 200 response.
      static_configs:
        - targets:
          - https://*/*.asmx  #GazProm
      relabel_configs:
        - source_labels: [__address__]
          target_label: __param_target
        - source_labels: [__param_target]
          target_label: instance
        - target_label: __address__
          replacement: 127.0.0.1:9115  # The blackbox exporter's real hostname:port.
  
  ```
  
  blackbox config
  
  ```
  http_2xx:
      prober: http
      timeout: 5s
      http:
        valid_http_versions:
        - HTTP/1.1
        - HTTP/2
        - HTTP/2.0
        valid_status_codes: [200]
        method: GET
        no_follow_redirects: false
        fail_if_ssl: false
        fail_if_not_ssl: true
        preferred_ip_protocol: "ip4"
        ip_protocol_fallback: true
        tls_config:
          insecure_skip_verify: true
  
  ```
  
  **Tags:** prometheus
  
  > **Comments:**
  > **username_1**: What is shown in blackbox when you [query it directly](https://github.com/prometheus/blackbox_exporter#checking-the-results) with `&debug=true`?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2023-11-13. Score: 0
  
  maybe `tls_config` setting needs to be set
  
  ```
   scheme: https
      tls_config:
        insecure_skip_verify: true
  
  ```
  
  > **Comments:**
  > **username_0**: Thank you for your response, @username_2. I appreciate your assistance, I've tried adding the configuration both in blackbox.yml and prometheus.yml, but it doesn't seem to be working.  
  > **username_2**: @username_0 the blackbox exporter is on the same server as prometheus?  
  
  ---
  
  