Script to periodically run the Speedtest CLI application by Ookla and post results to InfluxDB v2.0+
500
This is a Python script that will continuously run the official Speedtest CLI application by Ookla, takes input from environment variables, formats data and writes it to an InfluxDB database.
The InfluxDB connection settings are controlled by environment variables.
The variables available are:
The Ookla speedtest app provides a nice set of data beyond the upload and download speed. The list is below.
| Tag Name | Description |
|---|---|
| isp | Your connections ISP |
| interface | Your devices connection interface |
| internal_ip | Your container or devices IP address |
| interface_mac | Mac address of your devices interface |
| vpn_enabled | Determines if VPN is enabled or not? I wasn't sure what this represented |
| external_ip | Your devices external IP address |
| server_id | The Speedtest ID of the server that was used for testing |
| server_name | Name of the Speedtest server used for testing |
| server_country | Country where the Speedtest server resides |
| server_location | Location where the Speedtest server resides |
| server_host | Hostname of the Speedtest server |
| server_port | Port used by the Speedtest server |
| server_ip | Speedtest server's IP address |
| speedtest_id | ID of the speedtest results. Can be used on their site to see results |
| speedtest_url | Link to the testing results. It provides your results as it would if you tested on their site. |
Be aware that this script will automatically accept the license and GDPR statement so that it can run non-interactively. Make sure you agree with them before running.
Content type
Image
Digest
sha256:cadd0ffc5…
Size
58 MB
Last updated
7 months ago
docker pull vasylgnatiuk/speedtest