docker-graphite-statsd icon indicating copy to clipboard operation
docker-graphite-statsd copied to clipboard

refused connections stats

Open ZanLi7 opened this issue 6 years ago • 3 comments

System: Windows 10, Enterprise Docker Desktop Kitematic

I've been trying to connect to the statsd database to send any sample data, but I get the connection refused error (similar to issues 55, 64).

Used the recommended configuration in the walkthrough of : docker run -d --name graphite --restart=always -p 80:80 -p 81:81 -p 2003-2004:2003-2004 -p 2023-2024:2023-2024 -p 8125:8125/udp -p 8126:8126 hopsoft/graphite-statsd

I can connect to the Grafana database on http://localhost:80 or to the Graphite database on http://localhost:81 and I can see and use the links. I can connect the Graphite database to the Grafana database and it seems to work. However, I cannot send any stats to http://localhost:8125 or http://127.0.0.1:8125.

I've tried this to replicate the demo in the instructions using PowerShell: invoke-webrequest 'http://127.0.0.1:8125' and invoke-webrequest 'http://localhost:8125'

but I get

invoke-webrequest : No connection could be made because the target machine actively refused it

I've tried running netstat and I can see

Proto Local Address Foreign Address State UDP 0.0.0.0:8125 :
[vpnkit.exe]

Is there something you could point me towards to help fix this?

ZanLi7 avatar Jun 25 '19 23:06 ZanLi7

Same on Linux log-102 4.15.0-52-generic #56-Ubuntu SMP Tue Jun 4 22:49:08 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux statsd does not listen on port 8125

ValiDrv avatar Jun 26 '19 05:06 ValiDrv

statsd runs on UDP, so you can't connect to it over TCP+HTTP.

Arrived here debugging a similar issue, but in my case statsd is not responding on port 8126.

jace avatar May 06 '20 22:05 jace

Facing the same problem, @jace @ValiDrv @ZanLi7 Please help if you had esolved the problem, Thanks!

yashchoubisa avatar Jun 02 '23 05:06 yashchoubisa