v1.26.0
or later.docker compose up -d
.--Metrics.PushGatewayUrl=http://localhost:9091
or use the environment variable NETHERMIND_METRICSCONFIG_PUSHGATEWAYURL
set to http://localhost:9091
.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:
env.example
file named .env
..env
file and set the desired interface to be used for each service. Use 0.0.0.0
for all interfaces.
NETHERMIND_PROMETHEUS_HOST
to update Prometheus interface.NETHERMIND_PUSHGATEWAY_HOST
to update Prometheus Pushgateway interface.NETHERMIND_GRAFANA_HOST
to update Grafana interface.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.