- Docker
- Docker Compose
-
Clone the repository
-
Prepare configuration file
cp monitoring.env.example monitoring.env
# Edit the fileNETWORK- testnet or mainnet - the network to monitorDOMAIN- public domain used to issue SSL certificate (Let's Encrypt) and access Grafana UI. If you don't have any, use your.public.ip.address.nip.io (Check out https://nip.io/)GRAFANA_ADMIN_USER- Grafana admin usernameGRAFANA_ADMIN_PASSWORD- Grafana admin passwordCONFIG_PATH- custom path to configuration folder. Can be used withmake customize-configsto move config files outside Git folder. It's useful when you want to customize configs and update your stack from time to time. Runninggit pullwill not overwrite your custom folder, andmake diff-custom-configshelps in comparing changes.
- Run the stack
make startCheck out
make helpfor more commands.
Some of the services expose ports only for internal Docker network. Prometheus is one of them. To access Prometheus UI, you need to use SSH tunneling.
# Get the IP address of the Prometheus container
ip="$(docker inspect --format json prometheus | jq -r '.[0].NetworkSettings.Networks.mezo.IPAddress')"
# Create an SSH tunnel
ssh -N -L 9090:$ip:9090 user@host