connect to 127.0.0.1 port 80 failed: Connection refused
Trying ::1…
TCP_NODELAY set
Immediate connect fail for ::1: Cannot assign requested address
Trying ::1…
TCP_NODELAY set
Immediate connect fail for ::1: Cannot assign requested address
Failed to connect to localhost port 80: Connection refused
Closing connection 0
curl: (7) Failed to connect to localhost port 80: Connection refused
I’m using tick sandbox environment using my custom image from 1.6.0-RC4, using curl inside of the telegraf container the others plugins are working properly
Part of the issue is likely that the container can’t access localhost due to the networking layers. Try replacing localhost with your ip address. It may also depend on where that metrics endpoint lives. What application are you trying to access there? Does it live on your machine?
In the sandbox documentation, we currently have a tutorial for the socket listener, and this http input would be really useful in the same format if you’re interested in contributing.
From inside the container, try making a curl request to your /metrics endpoint but replace the localhost (or 127.0.0.1) with your machine’s ip address.