Giter Site home page Giter Site logo

mtr-monitor's Introduction

MTR monitor

Simple MTR runner which stores data to InfluxDB and allows to preview stored data using Grafana dashboards

sample dashboard

Installation

Requrements

  • bash shell
  • python3
  • docker (optional - required for standalone grafana and influxdb)
  • mtr
  • influxdb python package - using the command pip3 install --upgrade influxdb

How to run

  1. Edit mtr-monitor.sh to adjust settings to your own liking
  2. Run sudo make install to install mtr-monitor to /opt/mtr-monitor
  3. Start the systemd service systemctl start mtr-monitor
  4. Open http://127.0.0.1:51111 to access Grafana UI

How to access InfluxDB

./influx-cli.sh will connect to the docker image and open CLI

Notes

The mtr-monitor.sh script when run for the first time downloads grafana and influxdb docker images and creates new containers for them. During consecutive runs it just starts already existing docker containers. The created containers will be always started when the docker service starts. If you want to change parameters of the container, e.g. ports, you need to remove them (e.g. docker container rm mtr-influxdb) and just start mtr-monitor.sh.

Make sure influxdb is seen in ther python site-packages: python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" | xargs ls

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.