hopsoft / docker-graphite-statsd

Docker image for Graphite & Statsd
MIT License
867 stars 308 forks source link

refused connections stats #102

Open ZanLi7 opened 5 years ago

ZanLi7 commented 5 years ago

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?

ValiDrv commented 5 years ago

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

jace commented 4 years ago

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.

yashchoubisa commented 1 year ago

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