Skip to content

thomasglauser/nperf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                          ____
   ____  ____  ___  _____/ __/
  / __ \/ __ \/ _ \/ ___/ /_
 / / / / /_/ /  __/ /  / __/
/_/ /_/ .___/\___/_/  /_/
     /_/

Simple Network Performance Monitoring

Docker Cloud Build Status GPLv3 License

Features

  • Monitoring of Download/Upload speeds (Via speedtest.net)
  • Monitoring of server latency
  • Everything is containerized
  • Simple configuration with docker-compose

Demo

Dashboard

Deployment with Docker Compose

To deploy this project run

git clone https://github.com/AUThomasCH/nperf.git

cd nperf

Create a .env file in the projects directory.

Add the following configuration:

[NPERF]
# This defines the sleep time in seconds, before a new test is executed
nperf_interval = 300

# This addresses defines the servers which will be pinged, seperated with spaces!
# If a server isn't reacable, no value will be stored in the database!
latency_servers = 1.1.1.1 google.com github.com

[INFLUX_DB]
# This is the address of the influxdb
influx_url = "http://influxdb:8086"

# This is the authentication token. If you need to change or set it initially, just rerun 'docker-compose up' after it.
influx_token = _zqUe1mEHxmrcrJj9Ii8WZG0ZJU8yOUJ8nGHnhsrYwh2MfOU5AitI8LNktLTRQc-zKQzpKc_76-t9F5r4samaA==

influx_bucket = nperf
influx_org = nperf

Now start the project with docker-compose

docker-compose up

If everything runs, access the InfluxDB web interface at http://localhost:8086

You will need to do some initial configuration and generate a token for authentication.

After you generated a token, copy and paste it in the .env file and rerun docker-compose up. nperf can now authenticate itself with the token.

Done!

Contributing

Contributions are always welcome! Just open a Pull Request.

License

GNU General Public License v3.0