Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.24 KB

File metadata and controls

55 lines (38 loc) · 1.24 KB

2021-03-11_09-59-38


The nodes names must be different, otherwise it won't work!


Install dockers of Grafana, Mysql and go-binary swarmon service to the SERVER

wewwew Debian:

cd /root
wget https://github.com/doristeo/SwarmMonitoring/raw/main/docker/instdeb.sh
chmod +x instdeb.sh
./instdeb.sh

Ubuntu:

cd /root
wget https://github.com/doristeo/SwarmMonitoring/raw/main/docker/instubu.sh
chmod +x instubu.sh
./instubu.sh

Centos:
Maybe later.

Raspberry Pi
Never.

Default login/password to Grafana is admin/admin.

Install a script that sends data to the server for EACH NODE

cd /root
wget https://github.com/doristeo/SwarmMonitoring/raw/main/send.sh
chmod +x send.sh

test all /root/send.sh http://public_IP_of_your_server:8080, if ok you will see the data on your Grafana-server http://public_IP_of_your_server:3000.

crontab -e

add this string */10 * * * * /root/send.sh http://public_IP_of_your_server:8080 > /dev/null 2>&1
and restart cron systemctl restart cron
The node will send data to the monitoring server every 10 minutes.