This topic describes how to deploy InfluxDB to OMS Community Edition after it is deployed.
Limitations
Regardless of whether a single region or multiple regions are involved, only one set of InfluxDB can be configured. Multiple sets of different InfluxDB are not supported.
In an OMS Community Edition scenario involving multiple nodes, all nodes must configure the same set of InfluxDB.
Procedure
Deploy InfluxDB.
Deploy InfluxDB and verify that the service is available. For more information, see Deploy a time series database.
Configure OMS Community Edition.
Run the following commands to enter the OMS Community Edition container:
cat /home/admin/conf/config.yamlModify the configuration file. Here is an example:
"tsdb_enabled": !!bool "true" "tsdb_password": "XXXXXX" "tsdb_service": "INFLUXDB" "tsdb_url": "influxdb_ip:influxdb_port" "tsdb_username": "XXXXX"You must replace
influxdb_ipandinfluxdb_portwith the actual IP address and port number of your InfluxDB.Run the
sh /root/docker_init.shcommand to distribute the configuration file of InfluxDB to the configuration files of all components of OMS Community Edition.Alternatively, you can modify the configuration of InfluxDB in the following two files:
/home/ds/supervisor/config/drc.propertiesand/home/ds/ghana/config/application-oms.properties.# Time series database metrics.service.impl=INFLUXDB metrics.enable=true metrics.url=xxx.xxx.xxx.xxx:8086 metrics.user=username metrics.password=xxxxxxx