osp-influxdb

Overview

This module is used to store the Analytics data.

List of configuration files

Note

This module has no configurations files

Environnement variables

Environnement variables can be used to fine tune some parameters of the module, for generic information see the swarm page.

Variable name

Default value

Usage

DOCKER_INFLUXDB_INIT_USERNAME_FILE

‘/run/secrets/admin-user’

The username for the first account.

DOCKER_INFLUXDB_INIT_PASSWORD_FILE

‘/run/secrets/admin-pwd’

The password for the first account.

DOCKER_INFLUXDB_INIT_ORG

‘OnSphere’

The initial organization.

DOCKER_INFLUXDB_INIT_BUCKET

‘month’

The initial bucket name.

NGINX_WORKDOCKER_INFLUXDB_INIT_RETENTIONER_PROCESS

30d

The initial bucker retention.

DOCKER_INFLUXDB_INIT_ADMIN_TOKEN

‘2Kq08OIVAVTlK3xvT-esCv-5aFCdM3OKS6VIx7fruhSfj3aWME4YH_DXEi6b1H3ABCUIhLhYBXBxwnRjDVda2A==’

The initial token.

DOCKER_INFLUXDB_INIT_MODE

‘setup’

The initialization mode.

Password

Following secrets need to be created before the first deployment:

  • admin-user with the username for the admin user

  • admin-pwd with the password for the admin user

Changing password

To change the user password, following steps are needed:

  • Connect to the influx console.

  • Use the command influx user password -n <username>.

  • On docker, create a new secret with the new password.

  • On the module.service of Influx, add or modify the environment variable DOCKER_INFLUXDB_INIT_PASSWORD_FILE with the new secret /run/secrets/<new-admin-pwd>.

  • Push the configuration.

Healthcheck

The healthcheck is done with the command :

HEALTHCHECK --start-period=300s --timeout=15s --interval=15s CMD influx ping || exit 1