Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

folsom based metrics via HTTP and JSON

branch: master
Octocat-spinner-32 include ets and dets info support April 18, 2012
Octocat-spinner-32 priv
Octocat-spinner-32 src fixes and clean up November 05, 2013
Octocat-spinner-32 test fixes and clean up November 05, 2013
Octocat-spinner-32 .gitignore gitignore October 11, 2011
Octocat-spinner-32 fixes and clean up November 05, 2013
Octocat-spinner-32 rebar rebar upgrade April 12, 2012
Octocat-spinner-32 rebar.config


This is an application that exposes folsom metrics via http using webmachine.


    > folsom_webmachine_sup:start_link().
    > application:start(folsom).


Query the list of available metrics:

    $ curl http://localhost:5565/_metrics

Query a specific metric:

    $ curl http://localhost:5565/_metrics/name

Create a new metric:

    $ curl -X PUT http://localhost:5565/_metrics -d '{"id": "a", "type": "counter"}' -H "Content-Type: application/json"

Update a metric:

    $ curl -X PUT http://localhost:5565/_metrics/a -d '{"value" : {"inc": 1}}' -H "Content-Type: application/json"

Delete a metric:

    $ curl -X DELETE http://localhost:5565/_metrics/a

Query Erlang VM metrics:

    $ curl http://localhost:5565/_memory

Query Erlang VM stats:

    $ curl http://localhost:5565/_statistics

Query Erlang VM information:

    $ curl http://localhost:5565/_system


    $ curl http://localhost:5565/_metrics/a

     $ curl http://localhost:5565/_metrics/test


     $ curl http://localhost:5565/_memory
Something went wrong with that request. Please try again.