metrics-express
An express app to serve your segmentio/metrics as an internal API.
Installation
$ npm install metrics-express
Example
var Metrics = ;var serve = ; var metrics =
After your server starts, you'll be able to access a list of your metrics at:
GET /
Fetch a list of all Metric keys.
GET /:name
Get a list of all valid Metric timestamps and values.
GET /:name/:timestamp
Get a Metric value at a specific timestamp
.
timestamp
values could be specific timestamps, or human date.js strings, like today
or 2 weeks from wednesday
.
License
MIT