Giter Site home page Giter Site logo

network-speed-monitor's Introduction

Network Speed Monitor Docker

A network speed monitoring stack that built with InfluxDB, Grafana and Speedtest CLI

Prerequisite

  • Docker & Docker-compose installed
  • Git installed

Getting started

  • Clone this repo
  • Update .env file following the guide below
  • Run docker-compose up -d
  • Visit http://localhost:<GRAFANA_PORT> to view the statistics. The default credentials are admin:admin, Grafana will ask you to change your password the first time

Update env file

  • Run cp .env.sample .env and change the environment variables as you wish in .env
  • Get SPEEDTEST_SERVER_ID value from this link
  • Config CRON_CONFIG following node-cron syntax. I recommend to start with 1 minute to see the first few test quickly, then finally increase it to your desired time. Personally, I use 1 * * * * (each hour) as I think it would be more than enough. Every time you change the .env file, run docker-compose up -d --build to rebuild the image.

Showcase

network-speed-monitor's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

network-speed-monitor's Issues

Cannot find module execa

Hello!

I wanted to try your project, but after docker-compose up, one of the container doesn't succeed at starting . It's the speedtest container. I have this error in the log:

`
Error: Cannot find module 'execa'

Require stack:

  • /src/index.js

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)

    at Function.Module._load (internal/modules/cjs/loader.js:667:27)

    at Module.require (internal/modules/cjs/loader.js:887:19)

    at require (internal/modules/cjs/helpers.js:74:18)

    at Object. (/src/index.js:1:15)

    at Module._compile (internal/modules/cjs/loader.js:999:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

    at Module.load (internal/modules/cjs/loader.js:863:32)

    at Function.Module._load (internal/modules/cjs/loader.js:708:14)

    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {

    code: 'MODULE_NOT_FOUND',

    requireStack: [ '/src/index.js' ]

}
`

I try to rebuild the container, no luck. I even deleted package-lock.json for forcing a full redownload of the npm libs, with no luck, always the same error.

Any idea?

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.