Error: "Unable to parse the address"

#1

I follow the instruction here to install Telegraf into Ubuntu 14.04.

However, when I enable LeoFS monitoring configuration in /etc/telegraf/telegraf.conf and run a test, it showed an error for parsing server address.

$ grep leofs -A 5 telegraf.conf
[[inputs.leofs]]
#   ## An array of URI to gather stats about LeoFS.
#   ## Specify an ip or hostname with port. ie 127.0.0.1:4020
   servers = ["127.0.0.1:4021"]

$ telegraf --config ./telegraf.conf --input-filter=leofs --test
* Plugin: inputs.leofs, Collection 1
2017-06-06T08:47:15Z E! Error in plugin [inputs.leofs]: Unable to parse the address:127.0.0.1:4021, err:parse 127.0.0.1:4021: first path segment in URL cannot contain colon

I am not sure if there is any library dependency etc. that I need to config in order to make it work fine. If someone knows how to solve, please tell me.

Thanks

#2

This is caused by a change in the go standard library. If you specify the url as "//127.0.0.1:4021" it should work. More details on this issue.

1 Like