Skip to content

luguslabs/supervision

Repository files navigation

Supervisor

Supervisor permits the supervision of a Polkadot node.

Supervisor includes:

  • Grafana
  • Prometheus

Build

docker build -t luguslabs/supervision .

Run

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/supervision
  • GF_SERVER_HTTP_PORT - Grafana http listen port Default: 3000
  • GF_SECURITY_ADMIN_PASSWORD - password to access Grafana panel
  • PROMETHEUS_TARGET - Polkadot node Prometheus endpoint Default: localhost:9615
  • You can add --network=container:<CONTAINER_ID> to use networking of another container.

Testing

Launch polkadot node

docker run -d -p 3003:3003 --name polkadot parity/polkadot

Launch supervisor

docker 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/supervision

Go to dashboard

http://localhost:3000
---------------------
User: admin
Password: admin1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published