RethinkDB-sink-plugin
is a RethinkDB egress plugin for MTConnet Agents. The plugin streams data from the agent to a designated RethinkDB v2.4+ server.
Please visit the RethinkDB Realtime Database website for setup info.
Devices = _metaagent_.xml
Port = 7979
Adapters
{
Mazak
{
Host = demo.metalogi.io
Port = 7879
}
}
Sinks
{
RETHINKDB {
#
# RethinkDB Server location = <host name>:<port #>
#
RethinkDBServer = localhost:28015
#
# Additional optional connection info
# RethinkDBDatabase = <database name - default is mtconnect>
# RethinkDBAuthKey = <admin's password>
RethinkDBDatabase = demo
#RethinkDBAuthKey = secrets
#
# table info
# RethinkDBProbeTable = <table name for probe info - default is none (disabled) >
# RethinkDBNodeTreeTable = <table name for node tree selection - default is none (disabled) >
# RethinkDBItemInfoTable = <table name for item info - default is none (disabled) >
# RethinkDBAssetInfoTable = <table name for asset info - default is none (disabled) >
# RethinkDBDataTable = <table name for storing current data values - default is mtdata>
#
RethinkDBProbeTable = myProbeInfo
RethinkDBNodeTreeTable = myNodeTree
RethinkDBItemInfoTable = myItemInfo
RethinkDBAssetInfoTable = myAssetInfo
RethinkDBDataTable = myData
# licenseKey = <your license key - default is demo mode if not provided>
# override logger config
logger_config {
output = file rethinkdb-sink.log
level = info
}
}
}
RethinkDBServer
: RethinkDB client driver connection info in <host name>:<port #>RethinkDBDatabase
: Target Rethink DB database nameRethinkDBAuthKey
: RethinkDB connection authorization keyRethinkDBProbeTable
: Specify the table to store the metadata of the Agent's machine, the default is None (Disabled).RethinkDBNodeTreeTable
: Specify the table to store the unified data selection tree from the metadata, the default is None (Disabled).RethinkDBItemInfoTable
: Specify the table to store the type info for each data item, the default is None (Disabled).RethinkDBAssetInfoTable
: Specify the table to store the asset info in the Agent's data stream, the default is None (Disabled)RethinkDBDataTable
: Specify the table to store the Samples, Events, and Condition real-time data, the default is mtconnect.C:\Program Files\MetaAgent\examples\rethinkdb-sink-plugin>agent run
MTConnect Agent Version 2.2.0.592 - built on Mon Oct 9 22:38:46 2023
[2023-10-28 16:38:55.618875] [0x00001c08] [trace] Found file 'agent.cfg' in path "C:\\Program Files\\MetaAgent\\examples\\rethinkdb-sink-plugin"
[2023-10-28 16:38:55.634577] [0x00001c08] [info] Loading configuration from: "C:\\Program Files\\MetaAgent\\examples\\rethinkdb-sink-plugin\\agent.cfg"
Loading configuration from:"C:\\Program Files\\MetaAgent\\examples\\rethinkdb-sink-plugin\\agent.cfg"