Reputation: 23
I have a docker container (from here: https://registry.hub.docker.com/u/hopsoft/graphite-statsd/) that has both statsd and graphite running inside of it. I then have collectd running locally on my machine, and I need help passing the data collected by collectd to statsd running inside of the docker container for the purpose of data aggregation. Can't figure out how to do it though.
Upvotes: 2
Views: 1191
Reputation: 18679
If your ran the container with -p 8125:8125/udp
your can just run:
# On linux
echo "foo:1|c" | nc -u -w0 localhost 8125
# On OSX
echo "foo:1|c" | nc -u -w0 $(boot2docker ip) 8125
Upvotes: 0