$ yarn add git+https://github.com/zjl1985/egg-influxdb-plugin
// {app_root}/config/plugin.js
exports.influxdbPlugin = {
enable: true,
package: 'egg-influxdb-plugin',
};
// {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.
Please open an issue here.