blackbox_exporter icon indicating copy to clipboard operation
blackbox_exporter copied to clipboard

feature: param to not resolve target address

Open JustNZ opened this issue 2 months ago • 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

JustNZ avatar Apr 18 '24 07:04 JustNZ