1.0.0 • Published 6 years ago

egg-influxdb v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

egg-influxdb

NPM version build status Test coverage David deps Known Vulnerabilities npm download

Install

$ npm i egg-influxdb --save

Usage

// {app_root}/config/plugin.js
exports.influxdb = {
  enable: true,
  package: 'egg-influxdb',
};

Configuration

// {app_root}/config/config.default.js
exports.influxdb = {
   client: {
      host: '127.0.0.1',
      database: 'testdb',
      username: 'testuser',
      password: '123456',
      schema: [{
        measurement: 'testmeasurement',
        fields: {
          fielda: influxdb.FieldType.FLOAT
        },
        tags: [
            'url','bs'
        ]
      }]
};

see node-influx for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT