HOWTO: Server side internet speed continuous testing | PlexGuide.com

HOWTO: Server side internet speed continuous testing

  • Stop using Chrome! Download the Brave Browser via >>> [Brave.com]
    It's a forked version of Chrome with native ad-blockers and Google's spyware stripped out! Download for Mac, Windows, Android, and Linux!
Welcome to the PlexGuide.com
Serving the Community since 2016!
Register Now

plex_noob

Elite
Original poster
Staff
Donor
Oct 1, 2018
224
114
This small howto builds a complete solution providing a nice website displaying the download and upload speed of your server (See picture attached)
All the data is saved to an Influxdb database and graphs are built with Grafana.

1541856362669.png

To install,
- create a directory in /opt/appdata/<directory_name>
- simply save the following code to docker-compose.yml file in the newly created folder
- execute the following command
Bash:
docker-compose up -d
Code:
---
version: '2'
services:
  db:
    image: influxdb
    restart: always
    container_name: internetspeed_influxdb
    volumes:
      - "/opt/appdata/internetspeed_influxdb/:/var/lib/influxdb"
    ports:
      - "8083:8083"
      - "8086:8086"
    environment:
      - "TEST_INTERVAL=5"
  web:
    image: pedrocesarti/internet-speedtest-docker:grafana
    container_name: internetspeed_web
    restart: always
    ports:
      - "3000:3000"
    links:
      - db:db
    environment:
      - GF_SERVER_ROOT_URL=http://localhost
      - GF_SECURITY_ADMIN_PASSWORD=teste
    labels:
      traefik.enable: "true"
      traefik.frontend.headers.customResponseHeaders: "X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex"
      traefik.frontend.redirect.entryPoint: "https"
      traefik.frontend.rule: "Host:speed.domain.name,"
      traefik.port: "3000"
  testing:
    image: pedrocesarti/internet-speedtest-docker:speedtest
    restart: always
    container_name: internetspeed_speed
    links:
      - db:db
    environment:
      - "INFLUXDB_ADMIN_USER=admin"
      - "INFLUXDB_ADMIN_PASSWORD=password"
networks:
  default:
    external:
      name: plexguide
Sined
 
Last edited:
  • Like
Reactions: 1 users

timekills

VIP
Staff
Donor
Sep 12, 2018
369
193
labels:
traefik.enable: "true"
traefik.frontend.headers.customResponseHeaders: "X-Robots-Tag:noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex"
traefik.frontend.redirect.entryPoint: "https"
traefik.frontend.rule: "Host:speed.domain.name,"
traefik.port: "3000"
Do you need to change the "Host:speed.domain.name" to "Host:speed.yourActualTLD" for Traefik to give it the correct naming convention, or is that a variable that is replaced elsewhere?
 

plex_noob

Elite
Original poster
Staff
Donor
Oct 1, 2018
224
114
Do you need to change the "Host:speed.domain.name" to "Host:speed.yourActualTLD" for Traefik to give it the correct naming convention, or is that a variable that is replaced elsewhere?
Indeed, you need to replace it with you own information manually. These labels are the one used by Traefik to manage the redirection.
 

rcarteraz

Veteran
Donor
Nov 14, 2018
164
42
Is there anything additional needed after creating the container? When I go to the site it just says no datasets
 

gngrninja

Citizen
Oct 12, 2018
13
5
many thanks! I'm in the process of redesigning my homelab so this will be handy!
 
  • Like
Reactions: 1 user

plex_noob

Elite
Original poster
Staff
Donor
Oct 1, 2018
224
114
Hi,

No, don't think so. I will check tomorrow when I have some time.

Regards
 

Admin9705

Administrator
Project Manager
Donor
Jan 17, 2018
5,156
2,117
sounds like an add to 7.5
 
  • Like
Reactions: 1 user

JaksLax

Citizen+
Donor
Jul 6, 2018
26
2
Had mine up and running for almost 24 hours no, no data has been collected. Looking around I cant find any way to config anything. May just blow it away and redeploy it and see what happens. I adjusted both of these values, which maybe the issue.

environment:
- "INFLUXDB_ADMIN_USER=admin"
- "INFLUXDB_ADMIN_PASSWORD=password"

GF_SECURITY_ADMIN_PASSWORD=teste
 
  • Like
Reactions: 1 user

macfreaker

Veteran
Jul 16, 2018
152
60
Nope, I didn’t. Just copied the lines pasted in yaml file changed domain and started.
 

rcarteraz

Veteran
Donor
Nov 14, 2018
164
42
Nope, I didn’t. Just copied the lines pasted in yaml file changed domain and started.
Hmm. Yeah, that's exactly what I did. The containers deploy and I'm able to go to the site and it shows the up and down fields but I only see no data sets.
 

macfreaker

Veteran
Jul 16, 2018
152
60
I am setting up a new server now but will come back with screenshots when it's up.
 
  • Like
Reactions: 1 user

Admin9705

Administrator
Project Manager
Donor
Jan 17, 2018
5,156
2,117

Recommend NewsGroups

      Up To a 58% Discount!

Trending