Skip to content

dzimine/collectd3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Showing stats with collectd + d3js

Install dependencies:

  1. Install rrdtool. On Mac, homebrew works. On Linux, use apt-get install rrdtool, apt-get install librrd-dev. On Windows, figure this out yourself (and add instructions here). Make sure rrdtool is on the path (try $which rrdtool, $rrdtool).

  2. Get node dependencies:

     $cd node
     $npm install
    

Unit tests

Node unit tests:

  • by npm (a script is configured in package.json)

      $cd node
      $npm test
    
  • or manually

      env NODE_ENV=test node_modules/.bin/mocha -R spec
    

Browser unit tests - not implemented yet.

Configure

Open node/configure/default.yml. Modify data-directory to point out to collectd files. Change the port of web app. Define and adjust host categoreis (use regular expressions).

  • TODO: put comments into default.yml.

For more info, see comments in default.yml and config documentation

Run:

From collectd3 root:

$ cd node
$ node server.js

Ongoing

About

Stats with d3 and collectd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published