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

127.0.0.1 vs localhost

Open blueshirts opened this issue 8 years ago • 0 comments

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

blueshirts avatar Dec 20 '16 06:12 blueshirts