prometheus/blackbox_exporter

feature: param to not resolve target address

JustNZ opened this issue · 0 comments

Host operating system: RHEL8

blackbox_exporter version: 0.24.1

Within the utils.go the blackbox_exporter tries to resolve the ip address of the target.
https://github.com/prometheus/blackbox_exporter/blob/master/prober/utils.go#L34

can there be a config param to skip this resolve and use the dns name that should be checked?

example:
to check: https://my_dns_entry:1234/service
what blackbox_exporter does: https://1.2.3.4:1234/service

log:
ts=2024-04-17T13:01:37.6789646Z level=debug msg="Resolved target address" component_path=/ component_id=prometheus.exporter.blackbox.network module=http_2xx target=https://my_dns_entry:1234/service target=my_dns_entry ip=1.2.3.4