You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the problem here is that ip is of type net.IPAddr which doesn't implement Stringer in the value type, but only for the pointer type (see also https://play.golang.org/p/P5ZNyRm5QXV )
The text was updated successfully, but these errors were encountered:
Host operating system: output of
uname -a
Ubuntu 16.04, blackbox_exporter dockerized.
blackbox_exporter version: output of
blackbox_exporter -version
Docker: prom/blackbox-exporter:v0.15.1
What is the blackbox.yml module config.
What is the prometheus.yml scrape config.
What logging output did you get from adding
&debug=true
to the probe URL?What did you do that produced an error?
ICMP probing.
What did you expect to see?
Log would print resolved target address.
What did you see instead?
Log prints
"unsupported value type"
Code analysis
The
unsupported value type
string comes fromlogfmt
lib.Tracking down where it came from I think it is here:
https://github.com/go-logfmt/logfmt/blob/11fd56866eade1ecd7cd56144e08d5d50669fd48/encode.go#L156-L157
the log call happens here:
blackbox_exporter/prober/utils.go
Line 72 in 2e7c8cd
the problem here is that
ip
is of typenet.IPAddr
which doesn't implement Stringer in the value type, but only for the pointer type (see also https://play.golang.org/p/P5ZNyRm5QXV )The text was updated successfully, but these errors were encountered: