kamon-io / docker-grafana-graphite

Docker image with StatsD, Graphite, Grafana 2 and a Kamon Dashboard
Apache License 2.0
1.14k stars 495 forks source link

127.0.0.1 vs localhost #92

Open blueshirts opened 7 years ago

blueshirts commented 7 years ago

Played with a bunch today because it seems pretty awesome. Everything installs rather quickly without much of an issue though unfortunately none of my stats were making it into graphite. Through a bunch of testing I found that sending metrics to localhost (as below) doesn't ever make it into graphite. Using UDP there are no errors.

echo "a.b.c:28|g" | nc -w 1 -u localhost 8125    

Sending stats to 127.0.0.1 does however seem to work for me and I can see stats in both graphite and grafana.

echo "a.b.c:28|g" | nc -w 1 -u 127.0.0.1 8125

I am not sure if this could be made to be more flexible though if not adding a line in the documentation might be very helpful to others.

Thanks