/influx-pnp

A dockerized influxdb plug and play solution.

Primary LanguagePythonMIT LicenseMIT

An influxdb plug and play solution.

Motivation

The many possible uses of an influxdb with the many supported protocols often leads to lengthy research and configuration. With this repository we want to make influxdb usable out of the box with different connectors.

Prerequisits

You need to install docker and docker-compose for the system to work. Dont forget to set the docker command to work withou sudo.

Configuration

You need to create credentials to initialize the telegraf and the default user. We suggest to passwords/tokens for the assigned user and the data client (telegraf), by

openssl rand -base64 32

and use these tokens inside the environment file (.env).

Run

To start the influx database, the MQTT server and the connector (telegraf) we run

docker-compose --env-file ./.env up

Using an external MQTT server

  1. Adjust the configuration of the connector inside the PROTOCOL/telegraf.conf.
  2. Run
docker-compose --env-file ./.env up influxdb influxdb_cli telegraf