Skip to content
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

Exporter doesn't support port in the Host HTTP header #3

Open
stefanluptak opened this issue Mar 17, 2021 · 1 comment
Open

Exporter doesn't support port in the Host HTTP header #3

stefanluptak opened this issue Mar 17, 2021 · 1 comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@stefanluptak
Copy link
Contributor

When I configure my target to scrape as this:

- job_name: 'some_job'
    scheme: https
    static_configs:
    - targets: ['example.com']

Prometheus will try to scrape the endpoint with a request containing HTTP header Host: example.com:443. Apparently, Go net library is not able to deal with this and returns 404. I am not very familiar with Go, but it looks like it has been discussed here golang/go#10463
I put my exporter behind a Nginx proxy for now and it's working, but I would like to use it directly in the future.

@cpanato
Copy link
Owner

cpanato commented Mar 17, 2021

thanks, I will check in how to reproduce this

@cpanato cpanato added good first issue Good for newcomers help wanted Extra attention is needed labels Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants