Runs Ookla's Speedtest CLI program and push it to an InfluxDBv2 bucket.
1.4K
Do speedtest using Ookla's official CLI program and push results into influxdb bucket. Based on loganmarchione's docker-speedtest-influxdbv2. Updated for aligned Influxdb format with my other API InfluxDB containers.
Note does not build for arm64 target, see dockerfile and workflow yml for for more info.
Setup InfluxDBv2, create bucket and create a token with write permissions for said bucket.
$ docker run -d \
-e EXPECTED_DOWN="<expected isp upload>" \
-e EXPECTED_UP="<expected isp upload>" \
-e SPEEDTEST_SERVER="<Speedtest server id>" \
-e SPEEDTEST_PERIOD="60" \
-e INFLUXDB2_HOST="<INFLUXDBv2 SERVER>" \
-e INFLUXDB2_PORT="8086" \
-e INFLUXDB2_ORG="Home" \
-e INFLUXDB2_TOKEN="" \
-e INFLUXDB2_BUCKET="DEV-Speedtest" \
--name "Influx-Speedtest" \
dbsqp/speedtest-influxdbv2:latest
Note: EXPECTED_DOWN, EXPECTED_UP, SPEEDTEST_SERVER and SPEEDTEST_PERIOD are optional. Default and recomended period is 1 hour = 3600.
To report out further details in the log enable debug:
-e DEBUG="true"
Content type
Image
Digest
sha256:feecc874d…
Size
127.6 MB
Last updated
6 months ago
docker pull dbsqp/speedtest-influxdbv2