fpm-plugin-influxdb
v1.0.1
Published
A Plugin Named [fpm-plugin-influxdb] For YF-FPM-SERVER~
Downloads
2
Readme
FPM-PLUGIN-influxdb
用于influxdb的插件
Install
npm i fpm-plugin-influxdb -S
Useage
- config
使用之前需要配置好所有的 schema ,如果schema修改需要重新启动服务才能生效
schema 中可用的字段类型
FLOAT = 0,
INTEGER = 1,
STRING = 2,
BOOLEAN = 3
{
"influx": {
"database": "mydb",
"username": "",
"password": "",
"hosts": [
{ "host": "localhost" , "port": 19786}
],
"schema": [{
"measurement": "cpu_load_short",
"tags": ["host", "region"],
"fields": {
"value": 0
}
}]
}
}
- subscribe
Nothing
- other
Use the project https://github.com/team4yf/middle-stage to run the influxdb server