Supervisor permits the supervision of a Polkadot node.
Supervisor includes:
- Grafana
- Prometheus
docker build -t luguslabs/supervision .docker volume create grafana_data
docker volume create prometheus_data
docker run -d \
-p 3000:3000 \
--name supervision \
-v grafana_data:/var/lib/grafana \
-v prometheus_data:/prometheus \
-e GF_SECURITY_ADMIN_PASSWORD=<ADMIN_PASSWORD> \
-e GF_SERVER_HTTP_PORT=3003 \
-e PROMETHEUS_TARGET=<POLKADOT_PROMETHEUS_ENDPOINT> \
luguslabs/supervisionGF_SERVER_HTTP_PORT- Grafana http listen portDefault: 3000GF_SECURITY_ADMIN_PASSWORD- password to access Grafana panelPROMETHEUS_TARGET- Polkadot node Prometheus endpointDefault: localhost:9615- You can add
--network=container:<CONTAINER_ID>to use networking of another container.
docker run -d -p 3003:3003 --name polkadot parity/polkadotdocker volume create grafana_data
docker volume create prometheus_data
docker run -d \
--name supervision \
-v grafana_data:/var/lib/grafana \
-v prometheus_data:/prometheus \
-e GF_SECURITY_ADMIN_PASSWORD=admin1 \
-e GF_SERVER_HTTP_PORT=3003 \
-e PROMETHEUS_TARGET=localhost:9615 \
--network=container:polkadot \
luguslabs/supervisionhttp://localhost:3000
---------------------
User: admin
Password: admin1