athoune / node-metrics

expose values to a http frontend.
1 stars 2 forks source link

This project is now mesures


Metrics

Exposing key/value as a JSON.

Write value on a socket, with nc or other low tech tool. Read it with curl.

Try it

In a terminal

node app.js

In an other terminnal

echo "answer 42" | nc localhost 8124

In a browser

http://localhost:1337

Event source :

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.

Install

An init.d script is provided

sudo useradd --system --user-group metricsd

Todo