speedtest-logger

command module
v0.0.0-...-f44c590 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

README

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.

Setting Description
CRON_SPEC When to run the speedtest in regular cron format
INFLUX_ADDRESS Address to InfluxDB server, example http://localhost:8086
INFLUX_ORG InfluxDB Organisation ID (InfluxDB 2)
INFLUX_BUCKET InfluxDB Bucket ID (InfluxDB 2)
INFLUX_TOKEN InfluxDB Authentication Token (InfluxDB 2)
INFLUX_USERNAME InfluxDB Username (InfluxDB 1.8+)
INFLUX_PASSWORD InfluxDB Password (InfluxDB 1.8+)
INFLUX_DATABASE InfluxDB Database (InfluxDB 1.8+)
LOG_LEVEL Log level: debug, info (default), warn, error
LIBRESPEED_SERVER By 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

Documentation

Overview

Copyright © 2022 The speedtest-logger developers

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL