Socket
Socket
Sign inDemoInstall

faketsdb

Package Overview
Dependencies
68
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    faketsdb

A fake implementation of OpenTSDB, generating random but repeatable datasets to aid offline testing of API consumers


Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Install size
6.29 MB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 12 Sep 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc