All apps · 0 apps
SpeedtestforInfluxDB
Docker app from atribe's Repository
Overview
Readme
View on GitHubSpeedtest.net Collector For InfluxDB and Grafana

This tool is a wrapper for speedtest-cli which allows you to run periodic speedtets and save the results to Influxdb
Configuration within config.ini
GENERAL
| Key | Description |
|---|---|
| Delay | Delay between runs |
INFLUXDB
| Key | Description |
|---|---|
| Address | Delay between updating metrics |
| Port | InfluxDB port to connect to. 8086 in most cases |
| Database | Database to write collected stats to |
| Username | User that has access to the database |
| Password | Password for above user |
SPEEDTEST
| Key | Description |
|---|---|
| Server | Comma sperated list of servers. Leave blank for auto |
LOGGING
| Key | Description |
|---|---|
| Level | Set how verbose the console output is |
Usage
Before the first use run pip3 install -r requirements.txt
Enter your desired information in config.ini
Run influxspeedtest.py
Custom Config File Name
If you wish to use a config file by a different name set an ENV Variable called influxspeedtest. The value you set will be the config file that's used.
Requirements
Python 3+
You will need the influxdb library installed to use this - Found Here You will need the speedtest-cli library installed to use this - Found Here
Docker Setup
Install Docker
Make a directory to hold the config.ini file. Navigate to that directory and download the sample config.ini in this repo.
mkdir speedtest
curl -o speedtest/config.ini https://raw.githubusercontent.com/barrycarey/Speedtest-for-InfluxDB-and-Grafana/master/config.ini
cd speedtest
- Modify the config file with your influxdb settings.
nano config.ini
Modify the 'Address =' line include the ip or hostname of your influxdb instance. Example:
Address = 10.13.14.200
- Run the container, pointing to the directory with the config file. This should now pull the image from Docker hub. You can do this by either running docker run or by using docker-compose.
- The docker run option.
docker run -d \
--name="speedtest" \
-v config.ini:/src/config.ini \
--restart="always" \
barrycarey/speedtest-for-influxdb-and-grafana
- The docker-compose option
curl -O https://raw.githubusercontent.com/barrycarey/Speedtest-for-InfluxDB-and-Grafana/master/docker-compose.yml docker-compose.yml
docker-compose up -d
Install SpeedtestforInfluxDB on Unraid in a few clicks.
Find SpeedtestforInfluxDB in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.
Categories
Download Statistics
Related apps
Explore more like this
Explore allLinks
Details
barrycarey/speedtest-for-influxdb-and-grafanaRuntime arguments
- Network
bridge- Shell
sh- Privileged
- false
Template configuration
Download the config.ini file from https://github.com/barrycarey/Speedtest-for-InfluxDB-and-Grafana/blob/master/config.ini and copy it to /mnt/user/appdata/speedtest-influxdb/config.ini COPY THE FILE BEFORE YOU START THE CONTAINER. IF YOU DON'T AN EMPTY DIRECTORY WILL BE CREATED INSTEAD.
- Target
- /src/config.ini
- Default
- /mnt/user/appdata/speedtest-influxdb/config.ini
- Value
- /mnt/user/appdata/speedtest-influxdb/config.ini