Exposing key/value as a JSON.
Write value on a socket, with nc
or other low tech tool. Read it with curl.
In a terminal
node app.js
In an other terminnal
echo "answer 42" | nc localhost 8124
In a browser
http://localhost:1337
First event a dump, followings are new values.
http://localhost:1337/events
First event is a complete dump, following by a simple key/value for each modifications.
An init.d script is provided
sudo useradd --system --user-group metricsd