InfluxDB-sink-plugin
is an InfluxDB egress plugin for MTConnect Agents. The plugin streams data from the agent to a designated InfluxDB v2.0+ server.
Please visit the InfluxDB Times Series Data Platform website for setup info.
Devices = _metaagent_.xml
Port = 7979
Adapters
{
Mazak
{
Host = demo.metalogi.io
Port = 7879
}
}
Sinks
{
INFLUXDB {
#
# InfluxDB server info
#
InfluxDBUrl = https://localhost:8086
#
# Additional optional connection info
# InfluxDBOrganization = <organization name - default is mtconnect>
# InfluxDBBucket = <bucket name - default is mtconnect>
# InfluxDBAuthKey = <user's authorization key>
InfluxDBOrganization = YourOrganization
InfluxDBBucket = YourBucket
InfluxDBAuthKey = YourAuthKey
# batchSize = <# of records to be processed in a batch, default is 100>
batchSize = 200
# in demo mode, each data may only get updated every 20 seconds
# licenseKey = <your license key - default is demo mode if not provided>
# override logger config
logger_config {
output = file influxdb-sink.log
level = info
}
}
}
InfluxDBUrl
: The InfluxDB HTTP service's URLInfluxDBOrganization
: Organization name - default is mtconnect
.InfluxDBBucket
: Bucket name - default is mtconnect
.InfluxDBAuthKey
: InfluxDB's authorization key infobatchSize
: Specify # of records to be processed in a batch, default is 100.
C:\Program Files\MetaAgent\examples\influxdb-sink-plugin>agent run
MTConnect Agent Version 2.2.0.592 - built on Mon Oct 9 22:38:46 2023
[2023-10-28 16:49:21.255155] [0x000012f4] [trace] Found file 'agent.cfg' in path "C:\\Program Files\\MetaAgent\\examples\\influxdb-sink-plugin"
[2023-10-28 16:49:21.255155] [0x000012f4] [info] Loading configuration from: "C:\\Program Files\\MetaAgent\\examples\\influxdb-sink-plugin\\agent.cfg"
Loading configuration from:"C:\\Program Files\\MetaAgent\\examples\\influxdb-sink-plugin\\agent.cfg"