Driver Service Configuration
Due to distributed IOTA Vue architecture - each on-premise data driver installation requires 3 steps:
- Install the on-premise driver service
- Register the data driver in IOTA Vue user interface.
- Configure server connections per each registered data driver
This section covers the on-premise driver service configuration.
Tips
The Honeywell PHD Historian (HPHD) Driver comes with a preset configuration file. Manual configuration is not required.
On every startup - HPHD Driver reads its configuration from the file named the same as executable: iota.hphddrv.json
. For secure NATs bus communication, the NKey private key file named as privatekey.nk
must reside next to iota.hphddrv.json
configuration file.
During the first HPHD Driver installation, the installer copies an auto generated configuration (.json) file and private key file to ProgramData folder:
{ProgramData}\IOTA\Drivers\HPHD-Driver_{Region Name}_{Site Name}
Warning
Any subsequent HPHD Driver updates will not affect the configuration and private key files in ProgramData folder.
Configuration File parameters
Parameter name | Required | Default Value | Data Type | Description |
---|---|---|---|---|
driverid | ⚫ | null | string | Driver Id - used for logging purposes only |
debug | ⚫ | 0 | int | Debug verbose level: 0 - errors only, 1 - warnings, 2 - information, 3 - debug |
natsurl | 🟢 | null | string | NATs server url with port |
publickey | 🟢 | null | string | NATs NKey public key string. Private key must be defined in file: "privatekey.nk" and located in the same folder as iota.hphddrv.json |
reqtopic | 🟢 | null | string | NATs topic on which driver listens for requests |
statstopic | ⚫ | null | string | NATs topic for sending driver's stats |
logstopic | ⚫ | null | string | NATs topic for sending driver's logs |
metricstopic | ⚫ | null | string | NATs topic for sending driver's metrics |
metricsmsec | ⚫ | 30000 | int | How often in milliseconds to send metrics data. Default: 30000 = 30 sec |
enablemetrics | ⚫ | true | bool | Enables metrics reporting |
healthtopic | 🟢 | iota.health | string | NATs topic for sending driver's health |
healthmsec | ⚫ | 10000 | int | How often in milliseconds to send health data. Default: 10000 = 10 sec |
logfilecount | ⚫ | 10 | int | Number of rolling log files |
logfilesize | ⚫ | 2097152 | int | Number of bytes per each log file. Default: 2097152 bytes = 2 Mb |
logscanmsec | ⚫ | 30000 | int | How often in milliseconds to append data to log files. Default: 30000 = 30 sec |
Example
{
"driverid": "hphd-demo",
"natsurl": "mon.iota-demo.com:443",
"reqtopic": "us-east-1.site-demo.hphd.request",
"statstopic": "us-east-1.site-demo.stats",
"logstopic": "us-east-1.site-demo.hphd.logs",
"publickey": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"metricstopic": "us-east-1.site-demo.metrics",
"metricsmsec": 30000,
"healthtopic": "iota.health",
"healthmsec": 10000,
"enablemetrics": true,
"debug": 2,
"logfilecount": 10,
"logfilesize": 2097152,
"logscanmsec": 10000
}