Sign inSign up

jacobbaungard/speedtest-logger

By jacobbaungard

Updated almost 3 years ago

Tool to periodicially run a speedtest and save the result to InfluxDB

Image
0

366

jacobbaungard/speedtest-logger repository overview

Speedtest logger

GitHub Workflow Status Go Report Card GitHub release (latest by date) GitHub

Speedtest logger runs an internet speedtest using Librespeed at a regular interval and saves it to InfluxDB.

Usage

Docker-compose
version: '3'
services:
  speedtest-logger:
     image: jacobbaungard/speedtest-logger
     container_name: speedtest-logger
     environment:
        - INFLUX_ADDRESS="http://localhost:8086"
        - INFLUX_ORG="ORG"
        - INFLUX_BUCKET="BUCKET"
        - INFLUX_TOKEN="TOKEN"
        - CRON_SPEC="0 * * * *"

The examples directory contains full examples with InfluxDB included, as well as an example using InfluxDB 1.8+.

Configuration

The following configuration options are available.

SettingDescription
CRON_SPECWhen to run the speedtest in regular cron format
INFLUX_ADDRESSAddress to InfluxDB server, example http://localhost:8086
INFLUX_ORGInfluxDB Organisation ID (InfluxDB 2)
INFLUX_BUCKETInfluxDB Bucket ID (InfluxDB 2)
INFLUX_TOKENInfluxDB Authentication Token (InfluxDB 2)
INFLUX_USERNAMEInfluxDB Username (InfluxDB 1.8+)
INFLUX_PASSWORDInfluxDB Password (InfluxDB 1.8+)
INFLUX_DATABASEInfluxDB Database (InfluxDB 1.8+)
LOG_LEVELLog level: debug, info (default), warn, error
LIBRESPEED_SERVERBy default a server is chosen based on lowest ping. Use this option to use a specific for the speedtests. A list of server IDs can be found here.

Similar tools

Tag summary

Content type

Image

Digest

sha256:3a2db7e80

Size

62 MB

Last updated

almost 3 years ago

docker pull jacobbaungard/speedtest-logger