Skip to content

zjl1985/egg-influxdb-plugin

Repository files navigation

egg-influxdb-plugin

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

Install

$ yarn add git+https://github.com/zjl1985/egg-influxdb-plugin

Usage

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

Configuration

// {app_root}/config/config.default.js
exports.influxdbPlugin = {
  client: {
      host: '172.72.101.241',
      database: 'telegraf',
      measurement: 'opc',
      fields: {
        value: Influx.FieldType.FLOAT
      },
      tags: [
        'quality','tagCode'
      ]
    }
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published