0.4.0 • Published 6 years ago

faketsdb v0.4.0

Weekly downloads
15
License
GPL-3.0-or-later
Repository
github
Last release
6 years ago

NPM version NPM downloads GPL License Build Status Coverage

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.

0.4.0

6 years ago

0.3.3

6 years ago

0.3.2

8 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago