Giter VIP home page Giter VIP logo

metrics-viewer's Introduction

License: Apache 2.0 Build Status

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.

Examples

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.

Get Started

  1. Download the javascript and css files from dist directory.
  2. Download the MetricsGraphics files either lib directory or from MetricsGraphics site.The current version of MetricsViewer.js is based on MetricsGraphics.js v2.15.6 release.
  3. The documentation can be here.
  4. Follow the working examples here.

Dependencies

The MetricsViewer 2.0 version depends on the following libraries:

  1. MetricsGraphics.js (2.15.6) is a JavaScript library for visualizing time-series data.
  2. D3 (v15.16.0) is a JavaScript library for manipulating documents based on data. MetricsGraphics.js is based on D3 library.
  3. jQuery (3.5.1) is a quintessential JavaScript for manipulating HTML documents.

Build

  1. Check out the library.
  2. Install Node.js.
  3. Install gulp from the project root directory.
    npm install gulp
  1. Install the library's dependencies:
    npm install
  1. To build the Javascript library, type:
    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
  1. To build the css library, type
    gulp build:css
  1. To build everything at the same time, type
    gulp
  1. To build with Google closure compiler, type
    gulp compile
  1. To unit test, type
    gulp test

License

The MetricsViewer.js code is shared under the terms of Apache License v2.0.

metrics-viewer's People

Contributors

indrabasak avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.