Skip to content

eswdd/faketsdb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM version NPM downloads GPL License Build Status Coverage FOSSA Status

faketsdb

Fake implementation of nodetsdb-api's backend interface

Usage

Run standalone from the command line:

npm start

Or with options:

node faketsdb.js -p 4242 -v

Or embed in an existing application using Express:

var app = express();
var faketsdb = require('faketsdb');
// config optional, sensible defaults exist
var config = {
    probabilities: {
        noData: 0.1,
        missingPoint: 0.1
    }
};
faketsdb.installFakeTsdb(app, config);

var server = app.listen(4242, function() {
    var host = server.address().address
    var port = server.address().port

    console.log('FakeTSDB running at http://%s:%s', host, port)
});

// add some time series
faketsdb.addTimeSeries("some.metric", {host:"host01}, "gauge")

License

Faketsdb is freely distributable under the terms of the GPL license.

FOSSA Status

About

Fake implementation of OpenTSDB API as an Express Router to aid in the development of API consumers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •