Thanks a lot for your help its working now by replacing false by true

Le jeudi 16 avril 2020 13:30:59 UTC+2, meryem elallaoui a écrit :
>
> Hello, i try to configure blackbox with Prometheus for the monitoring of 
> HTTP, HTTPS application, but when i try curl, i get "probe_success 0 " :
>
>
> [image: Capture.PNG]
>
>
>
> my Blackbox.yml configuration :
> modules:
> http_2xx:
> prober: http
> timeout: 10s
> http:
> valid_http_versions: ["HTTP/1.0", "HTTP/1.1", "HTTP/2"]
> valid_status_codes: []
> method: GET
> no_follow_redirects: false
> fail_if_ssl: false
> fail_if_not_ssl: false
> tls_config:
> insecure_skip_verify: false
> preferred_ip_protocol: "ip4"
> ip_protocol_fallback: false
>
>
>
> with curl debug :
>
>
>
>
> Logs for the probe:
> ts=2020-04-16T10:04:01.453471937Z caller=main.go:118 module=http_2xx 
> target=https://applicationName:port/ <https://applicationname:port/> 
> level=info 
> msg="Beginning probe" probe=http timeout_seconds=9.5
> ts=2020-04-16T10:04:01.453565009Z caller=utils.go:42 module=http_2xx 
> target=https://applicationName:port/ <https://applicationname:port/> 
> level=info 
> msg="Resolving target address" ip_protocol=ip4
> ts=2020-04-16T10:04:01.454092043Z caller=utils.go:75 module=http_2xx 
> target=https://applicationName:port/ <https://applicationname:port/> 
> level=info 
> msg="Resolved target address" ip=ipaddress
> ts=2020-04-16T10:04:01.454125263Z caller=http.go:349 module=http_2xx 
> target=https://applicationName:port/ <https://applicationname:port/> 
> level=info 
> msg="Making HTTP request" url=https://ipaddress:port/
>  host=applicationName:port/
> ts=2020-04-16T10:04:01.464877041Z caller=http.go:364 module=http_2xx 
> target=https://applicationName:port/ <https://applicationname:port/> 
> level=error 
> msg="Error for HTTP request" err="Get https://ipaddress:port/: x509: 
> certificate signed by unknown authority"
> ts=2020-04-16T10:04:01.464904152Z caller=http.go:450 module=http_2xx 
> target=https://applicationName:port/ <https://applicationname:port/> 
> level=info 
> msg="Response timings for roundtrip" roundtrip=0 
> start=2020-04-16T10:04:01.454178431Z dnsDone=2020-04-16T10:04:01.454178431Z 
> connectDone=2020-04-16T10:04:01.454534045Z gotConn=0001-01-01T00:00:00Z 
> responseStart=0001-01-01T00:00:00Z end=0001-01-01T00:00:00Z
> ts=2020-04-16T10:04:01.464924149Z caller=main.go:131 module=http_2xx 
> target=https://applicationName:port/ <https://applicationname:port/> 
> level=error 
> msg="Probe failed" duration_seconds=0.0114166
>
>
>
> what i am missing ?
> Thanks
>

-- 
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/a69484f2-4248-468a-8135-18295d16eb89%40googlegroups.com.

Reply via email to