github_actions_exporter icon indicating copy to clipboard operation
github_actions_exporter copied to clipboard

Exporter doesn't support port in the Host HTTP header

Open stefanluptak opened this issue 4 years ago • 1 comments

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 https://github.com/golang/go/issues/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.

stefanluptak avatar Mar 17 '21 10:03 stefanluptak

thanks, I will check in how to reproduce this

cpanato avatar Mar 17 '21 12:03 cpanato