Product Features
DataHub
Configure the Timeseries DB
6min
you can configure the timeseries database in litmus edge by navigating to datahub > configuration video limitation when using datahub for storing data polled from connected devices, it's important to note the following limitations influxdb initialization for large databases takes a long time with high cpu utilization ensure the litmus edge device has sufficient computing resources datahub does not store custom formatted driver output like json or arrays to ensure efficient nosql timeseries database handling datahub handles string values differently than integers as a result, when querying stored data, the way string and integer values are handled can impact the structure and results of your query sample influx query for string values select "value str" from "temperature readings" where ("value str" field = 'pressure') and $timefilter for integer values select "value" from "temperature readings" where ("value" field = 555) and $timefilter you have the option of configuring an internal or external influxdb timeseries database datahub's configuration module offers the following functionalities toggle the timeseries db select and customize timeseries db source type test timeseries db toggle the timeseries db you can enable or disable the timeseries db by using the timeseries db disabled or timeseries db enabled toggle select and customize timeseries db source type you can change the timeseries db source type by using the source type drop down list and selecting internal or external important notes if you select internal, make sure to select the enable data store option for the device you want to store data for see connect a device docid\ ish7bqhzxswtdx8vbnszb to learn more in version 3 16 x and earlier, create a bucket called tsdata to enable data store in devicehub you may need to upgrade your litmus edge version (3 16 x) if the database creation feature is not implemented immediately if you select external enter the following details db uri the ip address and port of the externally deployed influxdb database if the influxdb database is deployed on the same device as litmus edge, enter http //localhost 8086 db username enter the influx db v1 x username db password enter the influx db v1 x password auth token copy the token for the influxdb 2 x database you can access the database from a browser window and navigate to data > tokens organization name enter the influxdb 2 x organization name configured for the database db vendor the available vendors are influxdb v1 x influxdb v2 x description (optional) enter a description for the externally deployed influxdb name enter a name for the externally deployed influxdb if you select internal , no further configurations are required test the timeseries db you can test the connectivity of the timeseries db by clicking test the connected status and response message displays