Open lamchakchan opened 1 year ago
@lamchakchan You need to disable the default TLS options - otherwise it tries to find those and then tries to securely connect to the socket: https://github.com/letsencrypt/unbound_exporter/blob/main/unbound_exporter.go#L398
Does this mean I need to call unbound-exporter
like this?
unbound-exporter -unbound.host unix:///var/run/unbound/control.sock -unbound.ca="" -unbound.key="" -unbound.cert=""
Shouldn't this bypass the loading of the certs?
I'm confused on why u.Scheme == "unix"
condition isn't triggering. Do I need to pass a different socket path format to -unbound.host
Description
When trying unix socket for the
remote-control
interface, the exporter has no way to be configured to input the unix socket address without a panic. Looks the the use ofParse()
fromnet/url
fails to recognize the scheme for a target ofunix:///var/run/unbound/control.sock
.Unbound Configuration
Command
unbound-exporter -unbound.host unix:///var/run/unbound/control.sock
Error