Script to periodically run the Speedtest CLI application by Ookla and post results to InfluxDB, updated for InfluxDB2
.dockerignore | ||
.gitignore | ||
Dockerfile | ||
main.py | ||
README.md |
speedtest-influx
This is a small Python script that will continuously run the OOKLA Speedtest CLI application, reformat the data output and forward it on to an InfluxDB database.
You may want to do this so that you can track your internet connections consistency over time. Using Grafana you can view and explore this data easily.
Using the script
Option 1 - No Container
-
Install the InfluxDB client for library from Python.
pip install influxdb
-
Run the script.
python3 ./main.py
Option 2 - Run with Docker/Podman
-
Build the container.
docker build -t aidengilmartin/speedtest-influx ./
podman build -t aidengilmartin/speedtest-influx ./
-
Run the container.
docker run -d --name speedtest-influx aidengilmartin/speedtest-influx
podman run -d --name speedtest-influx aidengilmartin/speedtest-influx