The Speedtest Logger is a simple container that periodically runs a speed test from speedtest.net and logs the result to a MySQL database. Most of it is configurable, but I'm sure there is room for improvements. Feel free to log new issues and/or pull-requests.
docker pull fossum/speedtest-logger
https://hub.docker.com/r/fossum/speedtest-logger
docker run --rm fossum/speedtest-logger list
Without a swarm:
docker run -d --env-file .env --name speedtest fossum/speedtest-logger
With a swarm:
docker service create --env-file .env --name speedtest fossum/speedtest-logger
Hostname or IP of the MySQL server that already has a configured database and user for this task. Optionally the table can be preconfigured as well.
MySQL user to create table and insert rows.
MySQL password for user account.
Preconfigured database for table and user.
Name of table to use in the database. Defaults to "internet-speed".
Integer value representing a specific speedtest.net
server. These numbers can be found by running
speedtest-cli --list
. With the Docker image, you can run
docker run -it --rm --env-file .env fossum/speedtest-logger list
.
Time in minutes to sleep between tests. Defaults to 10.