JavaScript library for displaying Dropwizard Metrics
MetricsViewer.js is a simple JavaScript library for displaying Dropwizard Metrics data as line graphs. Dropwizard metrics are formerly known as Coda Hale/Yammer metrics. The MetricsViewer.js library is based on MetricsGraphics.js charting library.
This library is very easy to use. You can create a simple counter metrics viewer by calling the calling
addCounter
.
metricsViewer.addCounter('#counter-div',
"Counter Metrics Viewer Example",
"Metric Viewer Example of Counter Metrics",
"counter.test.metric.a");
The complete documentation can be found here. Other examples can be found on the examples page.
The MetricsViewer 2.0 version depends on the following libraries:
npm install gulp
npm install
gulp build:js
P.S. If your OS does not recognize gulp, trying installing command line interface of gulp by typing:
npm install --global gulp-cli
gulp build:css
gulp
gulp compile
gulp test
The MetricsViewer.js code is shared under the terms of Apache License v2.0.