GithubHelp home page GithubHelp logo

koffeinkaio / docker-speedtest-influxdb Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jyrkih/docker-speedtest-influxdb

0.0 1.0 0.0 1.22 MB

Speedtest results to InfluxDB for Grafana

License: Apache License 2.0

Go 59.42% Shell 6.48% Dockerfile 34.11%

docker-speedtest-influxdb's Introduction

speedtest-influxdb:0.9.3

Introduction

Git-Repository to build Docker Container Image to run speedtest with speedtest.net to influxdb. The Implementation is inspired by https://github.com/frdmn/docker-speedtest

Contributing

If you find this image helpfull, so you can see here how you can help:

  • Create an new branch and send a pull request with your features and bug fixes
  • Help users resolve their issues.

Issues

Before reporting your issue please try updating Docker to the latest version and check if it resolves the issue. Refer to the Docker installation guide for instructions.

If that recommendations do not help then report your issue along with the following information:

  • Output of the docker version and docker info commands
  • The docker run command or docker-compose.yml used to start the image. Mask out the sensitive bits.

Getting started

Installation

Automated builds of the image are available on Dockerhub

docker pull speedtest-influxdb:0.9.3

Alternatively you can build the image yourself.

docker build . --tag 'speedtest-influxdb:dev';

Quickstart

docker run -e "HOST=local" speedtest-influxdb:0.9.3

Alternatively, you can use the sample docker-compose.yml file to start the container using Docker Compose

Environment Variables

Variable Default Value Informations
INTERVAL 3600 Seconds between import of statistics
HOST local host where the speedtest is running for grafana filter
SPEEDTEST_SERVER '' speedtest.net server. Empty string, means speedtest return server for test
SPEEDTEST_ALGO_TYPE 'max' how to calculate the speedtest up- and downlad values. changing of SPEEDTEST_ALGO_TYPE means avg
SPEEDTEST_LIST_SERVERS 'false' list all available speedtest.net servers at the console
SPEEDTEST_LIST_KEEP_CONTAINER_RUNNING 'false' keep docker container running after listing all speedtet.net servers
SHOW_EXTERNAL_IP 'false' You can activate logging your external Ip to InfluxDb to monitor IP changes.
INFLUXDB_USE 'true' You can deactivate save speedtest results to influx
INFLUXDB_URL http://influxdb:8086 Url of your InfluxDb installation
INFLUXDB_DB speedtest Database at your InfluxDb installation
INFLUXDB_USER DEFAULT optional user for insert to your InfluxDb
INFLUXDB_PWD DEFAULT optional password for insert to your InfluxDb

Environment Variable: SPEEDTEST_SERVER

Per default the server is choosen by speedtest.net, but you can set SPEEDTEST_SERVER with the id of your favorite server. You can get a list of all available servers by set the evironment variable SPEEDTEST_LIST_SERVERS to true. The list is ordered by country.

...
2018/07/18 00:16:53 County: Virgin Islands | Location: Saint Croix | ServerId: 4470 | Sponsor: Viya
2018/07/18 00:16:53 County: Virgin Islands | Location: Saint Croix | ServerId: 6762 | Sponsor: VI Next Generation Network
2018/07/18 00:16:53 County: Virgin Islands | Location: Road Town | ServerId: 7633 | Sponsor: CCTBVI
2018/07/18 00:16:53 County: Virgin Islands, British | Location: Road Town | ServerId: 17056 | Sponsor: Flow BVI
2018/07/18 00:16:53 County: Wales | Location: Pembrokeshire | ServerId: 16607 | Sponsor: Pembs Wifi Ltd
2018/07/18 00:16:53 County: Wales | Location: Newport | ServerId: 5833 | Sponsor: Hub Network Services Ltd
...

Grafana

There is an sample grafana dashboard at this repository. You can import that to your Grafana installation. speedtest.json

docker-speedtest-influxdb's People

Contributors

jyrkih avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.