fastcom-mysql

fastcom-mysql

Docker app from Simon Jenny's Repository

Overview

Docker Container with Fast.com CLI sending data to a MySQL Server The Docker needs the following ENV Variables: SLEEP : Seconds between measures MYSQL_SERVER : IP/Address of MySQL Server MYSQL_USER: MySQL Username MYSQL_PASS: MySQL Password MYSQL_DATABASE: MySQL Database MYSQL_TABLE: MySQL Table LOC: Name of Probe (eg. network/core or network/edge) Important: Database Table needs to have the following schema: CREATE TABLE `YOURTABLENAME` ( `timestamp` timestamp NULL DEFAULT current_timestamp(), `loc` varchar(50) COLLATE utf8mb4_bin DEFAULT NULL, `download` float DEFAULT NULL, `upload` float DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin

Docker Container with Fast.com CLI sending data to MySQL Server

The Docker needs the following ENV Variables:

SLEEP : Seconds between measures

MYSQL_SERVER : IP/Address of MySQL Server

MYSQL_USER: MySQL Username

MYSQL_PASS: MySQL Password

MYSQL_DATABASE: MySQL Database

MYSQL_TABLE: MySQL Table

LOC: Name of Probe (eg. network/core or network/edge)

Example:

 docker run -e MYSQL_SERVER=10.10.10.10 -e MYSQL_USER=USER -e MYSQL_PASS='PASSWORD' -e MYSQL_DATABASE=fastcom -e MYSQL_TABLE=results -e LOC='network/core' -e SLEEP=3600 simonjenny/fastcom-mysql:latest

Important:

Database Table needs to have the following schema:

CREATE TABLE `results` (
  `timestamp` timestamp NULL DEFAULT current_timestamp(),
  `loc` varchar(250) COLLATE utf8mb4_bin DEFAULT NULL,
  `download` float DEFAULT NULL,
  `upload` float DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin

Install fastcom-mysql on Unraid in a few clicks.

Find fastcom-mysql 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.

Open the Apps tab on your Unraid server Search Community Apps for fastcom-mysql Review the template variables and paths Click Install

Categories

Download Statistics

17,536
Total Downloads
4
This Month
10
Avg / Month

Total Downloads Over Time

Loading chart...

Related apps

Explore more like this

Explore all

Details

Repository
simonjenny/fastcom-mysql
Last Updated2021-11-25
First Seen2022-05-14

Runtime arguments

Network
bridge
Shell
sh
Privileged
false

Template configuration

MYSQL_SERVERVariable

Container Variable: MYSQL_SERVER

MYSQL_USERVariable

Container Variable: MYSQL_USER

MYSQL_PASSVariable

Container Variable: MYSQL_PASS

MYSQL_DATABASEVariable

Container Variable: MYSQL_DATABASE

MYSQL_TABLEVariable

Container Variable: MYSQL_TABLE

LOCVariable

Container Variable: LOC

SLEEPVariable

Container Variable: sleep

Value
3600