Configure the Timeseries DB
You can configure the Timeseries DB by navigating to DataHub > Configuration.
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
You can enable or disable the Timeseries DB by using the Timeseries DB disabled or Timeseries DB enabled toggle.
![Timeseries DB toggle Timeseries DB toggle](https://images.archbee.com/SSUUxKZUk9bFTEPNn_6Zo/EZ15R5C1KhfLGFV_qlnwi_image.png?format=webp)
You can change the Timeseries DB source type by using the Source type drop-down list and selecting internal or external.
Note: If you select internal, make sure to select the Enable Data Store option for the device you want to store data for. See Enable Data Store to learn more.
![Source type drop-down list Source type drop-down list](https://images.archbee.com/SSUUxKZUk9bFTEPNn_6Zo/3aClD96hc5jG0XmTZeY1r_image.png?format=webp)
If you select external enter the following details:
- DB uri: The IP address and port of the externally deployed influxdb database.
- DB username (Optional): The username login credential of the externally deployed influxdb.
- DB password (Optional): The password login credential of the externally deployed influxdb.
- DB vendor: The available vendors are
- influxdb v1.x
- influxdb v2.x
- Description (Optional): A description for the externally deployed influxdb
- Name: The configuration name of the externally deployed influxdb
If you select internal, no further configurations are required.
You can test the connectivity of the Timeseries DB by clicking Test.
![The test Timeseries DB button The test Timeseries DB button](https://images.archbee.com/SSUUxKZUk9bFTEPNn_6Zo/J9leHde_jw_L29l5b3GJy_image.png?format=webp)
The connected status and response message displays.