Define a Connection to InfluxDB Server
All InfluxDB connections are defined in the
InfluxDB-Plugin.config
configuration file (JSON format). In the following example are two InfluxDB connections defined:[ { "InstanceName": "InfluxDB-Server-1", "ServerUrl": "http://192.168.1.162:8086", "SubscriptionIpAddress": "", "SubscriptionPort": 9098, "User": "InfoPlatform", "Password": "InfluxDBPW", "PasswordEncrypted": false }, { "InstanceName": "InfluxDB-Server-2", "ServerUrl": "http://192.168.1.221:8086", "SubscriptionIpAddress": "192.168.1.200", "SubscriptionPort": 9099, "User": "tk", "Password": "secret", "PasswordEncrypted": false } ] |
Property Name | Description |
---|---|
InstanceName | Name of the InfluxDB connector in the model. |
ServerUrl | Server URL in the following form: http://<hostname>:<port> |
SubscriptionIpAddress | The InfluxDB connector provides a web server to get informed by InfluxDB of a field or a tag values change. This property defines the ip address. If this property will be blank, the connector tries to detect the IP address automatically. |
SubscriptionPort | The InfluxDB connector provides a web server to get informed by InfluxDB of a field or a tag values change. This property defines the used port. |
User | User |
Password | Password |
PasswordEncrypted | If the password is added in the configuration file, user can do this in plain text. Set the parameter to false and the password will be encrypted automatically at the first start. |
Reference: Manage Subscription in InfluxDB
- Restart InfoPlatform service.
Provide Feedback