Integration with InfluxDB

Starting with SAYMON 3.6.80, you can configure the storage of object metrics in InfluxDB.

For this you need to do the following:

Step 1: Install InfluxDB

To download the InfluxDB docker image you can use the following command:

$git clone https://hub.docker.com/_/chronograf && cd chronograf
$docker pull chronograf

To start InfluxDB you can use the following command:

$docker run -d -p 8086:8086 \
      -v $PWD:/var/lib/influxdb \
      --name=influxdb \
      --net=influxdb \
      influxdb

If necessary, you can launch the Chronograf web application:

docker run -p 8888:8888 \
      --net=influxdb \
      chronograf --influxdb-url=http://influxdb:8086
You can access Chronograf web application at localhost:8086.

Step 2: Set up server configuration

To configure the server configuration, you need to add the tsdb_extensions section, which is an array of configurations of additional time series databases, to the server configuration file (/etc/saymon/saymon-server.conf):

   "openTsdb" : {
        "host" : "localhost",
        "port" : 4242
    },
    "tsdb_extensions": [
        {
            "name": "influx",
            "enabled": true,
            "config": {}
        }
    ],
For backward compatibility purposes, it is recommended to leave the contents of the OpenTsdb section unchanged.

Description of array elements:

  • name - database name (for InfluxDB the name influx is used);

  • enabled - enabled/disabled;

  • config - configuration for connecting to the database.

  • path - absolute path to the database client file. It is used if you need to connect another third-party module to work with time series.

The connection will be established to the first specified database whose enabled field value is true. If the enabled parameter is false for all specified databases, then the client will connect to the OpenTSDB database.