-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blackbox Exporter adding ip to url instead dns name #886
Comments
I'm having the same issue, did you manage to resolve this by chance? |
@bru73f0rc3 no, we were looking into it again and again but no resolution yet. The only option we had is to get whitelisted by cloud flare but that was not possible from the customer side. |
I am facing the same issue. I don't think so we can use anything in blackbox.yaml . I guess we need to fix it at go level. |
We should provide cloudflare with the appropriate HOST headers and SNI . What's going on? |
I have some hosts behind CloudFlare but I'm not able to reproduce the problem with the exporter v0.19.0 or v0.20.0:
|
We have the same problem on our side too when we try to run http checks on external domains. We are behind a proxy and it is complicated/ not our policy to allow traffic on public IP. Even more so when they can be dynamic. I tried to update the header to force the host with a specific dns name but still the same. Black box tries to access the public IP. |
I would be open to a new http_probe, http_proxy which would forcibly use a proxy in "an expected way". |
We've having the same problem with AWS services where the IP changes randomly so we hit 403 errors when we should be seeing 200's. We've configured Blackbox to pass through the host header but that seems to have no effect either. |
The fix for this is #938 |
having same issue with api health check target=https://dnsname/health |
Host operating system: output of
uname -a
Running blackbox exporter in a k8s cluster
blackbox_exporter version: output of
blackbox_exporter --version
0.19.0
What is the blackbox.yml module config.
What is the prometheus.yml scrape config.
What logging output did you get from adding
&debug=true
to the probe URL?X
What did you do that produced an error?
I have added a new scrape target to the configuration which uses the http_2xx module to do http checks.
What did you expect to see?
ts=2022-02-28T13:27:12.202701182Z caller=client.go:251 module=http_2xx target=https://my.super.host/ level=info msg="Making HTTP request" url=https://my.super.host/ host=my.super.host
What did you see instead?
ts=2022-02-28T13:27:12.202701182Z caller=client.go:251 module=http_2xx target=https://my.super.host/ level=info msg="Making HTTP request" url=https://IP-ADRESS/ host=my.super.host
I was wondering if there is something I can do to bring blackbox exporter to call the host name from target instead using the ip address. The target host is using cloud flare and I get a 503 instead of 200 when going on the ip.
The text was updated successfully, but these errors were encountered: