3.3 Configuring System Insight with Multiple InfluxDB Instances

Note!

This section only applies if you are using System Insight with InfluxDB for data storage.

If you require multiple InfluxDB databases which can also be written to as a back up, you can add additional databases to the System Insight service configuration as follows:

backupDBs="influxdb2"

            influxdb2 {
                database=mz
                password=dr
                url="http://127.0.0.1:18086"
                user=mzadmin
            }

For information on how to modify the System Insight service configuration using the mzsh topo command, see 2.7.2 Updating Service Configurations.

You can specify more than one database using a comma as a separator, as shown in the example below:

Example - How to add additional InfluxDB databases

system-insight {
    si-instance {
          config {
            akka-cluster=si
            influxdb {
                database=mz
                password=dr
                url="http://127.0.0.1:8086"
                user=mzadmin
            }

            backupDBs="influxdb2,influxdb3"

            influxdb2 {
                database=mz
                password=dr
                url="http://127.0.0.1:18086"
                user=mzadmin
            }

            influxdb3 {
                database=mz
                password=dr
                url="http://127.0.0.1:28086"
                user=mzadmin
            }
        }

        start-after=[
            "akka/si"
        ]
        template="1/standard/basic"
    }
}

If all InfluxDB instances are unreachable, System Insight runs in gated mode. In gated mode, metrics are dropped until at least one InfluxDB instance is reachable.

 

Â