Simple MTR runner which stores data to InfluxDB and allows to preview stored data using Grafana dashboards
bash
shellpython3
docker
(optional - required for standalone grafana and influxdb)mtr
influxdb
python package - using the commandpip3 install --upgrade influxdb
- Edit
mtr-monitor.sh
to adjust settings to your own liking - Run
sudo make install
to install mtr-monitor to/opt/mtr-monitor
- Start the systemd service
systemctl start mtr-monitor
- Open http://127.0.0.1:51111 to access Grafana UI
./influx-cli.sh
will connect to the docker image and open CLI
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