prometheus / blackbox_exporter

Blackbox prober exporter
https://prometheus.io
Apache License 2.0
4.44k stars 1.03k forks source link

Probe fails with "target" as URL parameter in URL to probe. #1234

Closed GreenieT87 closed 2 months ago

GreenieT87 commented 2 months ago

Using latest docker container:

prom/blackbox-exporter:v0.25.0

What is the blackbox.yml module config.

http_2xx: prober: http http: follow_redirects: true

What is the prometheus.yml scrape config.

What logging output did you get from adding &debug=true to the probe URL?

Logs for the probe: ts=2024-04-17T11:02:09.84847847Z caller=main.go:190 module=http_2xx target="https://?SAMLDS=1" level=info msg="Beginning probe" probe=http timeout_seconds=119.5 ts=2024-04-17T11:02:09.848605369Z caller=http.go:328 module=http_2xx target="https://?SAMLDS=1" level=info msg="Resolving target address" target= ip_protocol=ip6 ts=2024-04-17T11:02:09.850082253Z caller=http.go:328 module=http_2xx target="https://?SAMLDS=1" level=info msg="Resolved target address" target= ip= ts=2024-04-17T11:02:09.850175652Z caller=client.go:259 module=http_2xx target="https://?SAMLDS=1" level=info msg="Making HTTP request" url="https://?SAMLDS=1" host= ts=2024-04-17T11:02:10.036923075Z caller=handler.go:119 module=http_2xx target="https://?SAMLDS=1" level=info msg="Received HTTP response" status_code=500 ts=2024-04-17T11:02:10.036955275Z caller=handler.go:119 module=http_2xx target="https://?SAMLDS=1" level=info msg="Invalid HTTP response status code, wanted 2xx" status_code=500 ts=2024-04-17T11:02:10.037769266Z caller=handler.go:119 module=http_2xx target="https://?SAMLDS=1" level=info msg="Response timings for roundtrip" roundtrip=0 start=2024-04-17T11:02:09.850276251Z dnsDone=2024-04-17T11:02:09.850276251Z connectDone=2024-04-17T11:02:09.888719244Z gotConn=2024-04-17T11:02:09.978571893Z responseStart=2024-04-17T11:02:10.036878276Z tlsStart=2024-04-17T11:02:09.888759444Z tlsDone=2024-04-17T11:02:09.978554493Z end=2024-04-17T11:02:10.037758466Z ts=2024-04-17T11:02:10.037864465Z caller=main.go:190 module=http_2xx target="https://?SAMLDS=1" level=error msg="Probe failed" duration_seconds=0.189350195

What did you do that produced an error?

What did you expect to see?

Probe uses all URL-parameter successful probe

What did you see instead?

Probe cuts at &target resulting in an unsuccessful probe.