1.0.0 • Published 6 years ago
egg-influxdb v1.0.0
egg-influxdb
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
1.0.0
6 years ago