0.4.0 • Published 5 years ago

faketsdb v0.4.0

Weekly downloads
15
License
GPL-3.0-or-later
Repository
github
Last release
5 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

5 years ago

0.3.3

5 years ago

0.3.2

6 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago