- Nethermind
v1.26.0
or later. - Docker with Docker Compose plugin installed. (Installation Guide)
- Clone this repository and move into the project folder.
- Open Grafana config file and edit admin username and password for additional security.
- Execute
docker compose up -d
. - Configure and launch Nethermind client with the following flag
--Metrics.PushGatewayUrl=http://localhost:9091
or use the environment variableNETHERMIND_METRICSCONFIG_PUSHGATEWAYURL
set tohttp://localhost:9091
. - Open your local Grafana on your browser and login with your configured username and password.
By default the monitoring services are only exposed to the localhost
(127.0.0.1
) interface. To expose these services to another interfaces follow these steps:
- Create a copy of the
env.example
file named.env
. - Edit the
.env
file and set the desired interface to be used for each service. Use0.0.0.0
for all interfaces.- Change
NETHERMIND_PROMETHEUS_HOST
to update Prometheus interface. - Change
NETHERMIND_PUSHGATEWAY_HOST
to update Prometheus Pushgateway interface. - Change
NETHERMIND_GRAFANA_HOST
to update Grafana interface.
- Change
- Execute
docker compose up -d
.
In case any of these interfaces are exposed to the internet(ie. using 0.0.0.0
) be sure to restrict access to the services by using a firewall.