This section describe how to setup a Grafana instance on one of the hosts in order to have a dashboard to monitor the machines. This strategy is a work in progress and does not implement any form of security. Use at your own risk
This strategy uses 3 components:
- Promtail to collect the logs from the hosts (installed on every machine).
- Loki to collect the logs on the main host.
- Grafana to create the dashboard.
$ brew install colima docker docker-compose
$ colima start
-
Download the monitoring folder from this repo to the machine.
$ scp -r monitoring admin@<HOST_IP>:grafana
-
Replace the HOST_URL and the MACHINE_NAME in promtail's configuration files.
-
Replace the HOST_URL in the
docker-compose.yaml
On the remote machine, install the service and launch it.
$ sudo chown root:wheel launch.sh
$ sudo cp com.mirego.ekiden-monitoring.plist /Library/LaunchDaemons
$ sudo launchctl load -w /Library/LaunchDaemons/com.mirego.ekiden-monitoring.plist
- Optionally import the pre-built dashboard in the grafana folder