Setup a test environment running InfluxDB so that we can ingest some dummy water data and try out dashobard widgets and alerts.
For this project we are using InfluxDB 2.2
You will need docker and docker-compose installed.
Use docker-compose to start the database running:
docker-compose up -d
For Windows, try:
docker-compose -f docker-compose-win.yml up -d
There are two steps to get the initial database setup. First run a shell in the docker container:
docker-compose exec influxdb bash
Then run the setup script, which can be done interactively or in a single line:
# interactive
influx setup
# single line
influx setup --username admin --password admin --org TestOrg --bucket water-quality --retention 0 --force
You can test that you have set things up correctly by viewing the API tokens and listing the orgamisations:
# view API tokens
influx auth list
# list organisations
influx org list
Login to the InfluxDB portal at https://localhost:8086