That feature was added in blackbox_exporter v0.22.0 
<https://github.com/prometheus/blackbox_exporter/releases/tag/v0.22.0> 
which was only released a week ago.  I guess you're running an earlier 
version.

On Friday, 9 September 2022 at 11:55:57 UTC+1 [email protected] wrote:

> 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
>
>
>
>

-- 
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/dd1357c3-b0f7-48b1-9ca7-e279ce272eean%40googlegroups.com.

Reply via email to