Error on blackbox_exporter "field skip_resolve_phase_with_proxy not found in type config.plain"

67 views
Skip to first unread message

Alen Cappelletti

unread,
Sep 9, 2022, 6:55:57 AM9/9/22
to Prometheus Users
Hi, 
I'm in side a docker stack and some urls didn't reach... so I try to use the configuration proxy setting  on blackbox_exporter.

During the restart/reload of the app I got always:
  • level=error msg="Error loading config" err="error parsing config file: yaml: unmarshal errors:\n  line 21: field skip_resolve_phase_with_proxy not found in type config.plain"

If I comment that line the reload is successful.
Can someone explain me the problem? I followed the config settings
https://github.com/prometheus/blackbox_exporter/blob/master/CONFIGURATION.md

ALEN
--------------------------------------
modules:
  http_2xx:
    prober: http
    timeout: 15s
    http:
      fail_if_not_ssl: false
      ip_protocol_fallback: false
      method: GET
      no_follow_redirects: false
      preferred_ip_protocol: ip4
      valid_http_versions:
        - HTTP/1.1
        - HTTP/2.0
       
  http_with_proxy:
    prober: http
    timeout: 15s
    http:
      proxy_url: http://myurl:9090
      skip_resolve_phase_with_proxy: true
      tls_config:
        insecure_skip_verify: true



Brian Candler

unread,
Sep 9, 2022, 8:24:38 AM9/9/22
to Prometheus Users
That feature was added in blackbox_exporter v0.22.0 which was only released a week ago.  I guess you're running an earlier version.
Reply all
Reply to author
Forward
0 new messages