Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
expose values to a http frontend.
Shell JavaScript
tree: 19777343d1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
init.d
lib
www
README.md
app.js

README.md


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

  • √ expose stack as JSON over HTTP
  • √ set value over a socket
  • √ expose values as Server Sent Event
  • √ homepage with some javascripts.
  • _ backup JSON file for crash proof
  • _ not only GAUGE, add COUNTER type
Something went wrong with that request. Please try again.