Using InfluxDB for storage of simulated satellite telemetry
If you’re not already familiar, InfluxDB is a time-series database from InfluxData that is much better than relational databases like Postgres, and document databases like MongoDB, at collecting time-series data
Telegraf is an agent platform for collecting time-series data and sending it to InfluxDB, which then stores the data for later analysis and presentation.
-
Make a subdirectory for the docker container data volume:
-
Inside the subdirectory, run:
docker run --name influxdb \ -p 8086:8086 \ --volume $PWD:/var/lib/influxdb2 \ influxdb:2.0.6
-
In the root directory, run:
docker run \ --rm influxdb:2.0.6 \ influxd print-config > config.yml
-
Edit the config.yml file in the root directory to locate the correct paths for the bolt path and engine path
-
Run the container in the root directory:
docker run -p 8086:8086 \ -v $PWD/config.yml:/etc/influxdb2/config.yml \ influxdb:2.0.6
-
Set Up User at
localhost:8086
ex. Username: telemetry Password: telemetry Org Name: Projects Bucket Name: Telemetry
-
Determine a config: use
docker start 7b9767358f35ab522cf168b5a4995852944d25762fb70f301f23cacc9a940f4d
for now -
Run the Influx container command line:
docker exec -it quizzical_bouman bash