/ node / metrics / docker-compose.yml
docker-compose.yml
 1  services:
 2    prometheus:
 3      image: ubuntu/prometheus:2.33-22.04_beta
 4      volumes:
 5        - ./prometheus.yml:/etc/prometheus/prometheus.yml
 6      ports:
 7        - 9090:9090
 8      extra_hosts:
 9        - "host.docker.internal:host-gateway"
10    grafana:
11      image: grafana/grafana
12      depends_on: [prometheus]
13      ports:
14        - 3000:3000