Collect stuff over UDP, show graphs.
-
grab node. http://nodejs.org/
NODE_VERSION=v0.10.29 curl -O http://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}.tar.gz tar zxvf node-${NODE_VERSION}.tar.gz cd node-${NODE_VERSION} ./configure --prefix=${HOME}/opt/node-${NODE_VERSION} make -j8 make install cd ..
Of course, you want this to be the version you use.
(cd ${HOME}/opt && rm -f node && ln -s node-${NODE_VERSION} node)
-
node path
NODE_HOME=${HOME}/opt/node export PATH=$PATH:${NODE_HOME}/bin
-
install dependencies (be sure to be inside this directory)
# Inside the ticked directory; installing locally npm install
-
start the ticked server.
node ticked.js
-
send some data.
./sender.py
-
point a browser at the server. http://localhost:8080
UDP data is accepted. The message format is colon ':' separated. You can test from the command-line like:
# on mac
echo "toplevel:groovy" | nc -u -w 0 localhost 8025
# on linux
echo "toplevel:groovy" | nc -u -q 0 localhost 8025
It sucks.