Skip to content

rillrate-fossil/rillrate-js

Repository files navigation

rillrate-js

npm

Dynamic tracing system that tends to be real-time.

Node.js bindings.

How to use

Add it as a dependency to your node.js project:

npm install --save @rillrate/rillrate

Import it in your code and install a tracer:

rillrate = require('@rillrate/rillrate')
rillrate.install()

Add a metric and use methods to update it:

gauge = new rillrate.Gauge('my.gauge', 0, 100)
gauge.set(55.0)

histogram = new rillrate.Histogram('my.histogram', [10, 20, 50, 100, 200, 500])
histogram.add(128.0)