Fix prometheus in local metrics docker setup (#5123)

This commit is contained in:
Nico Flaig
2023-02-10 17:01:31 +01:00
committed by GitHub
parent 4d3af909df
commit 914397acd5
2 changed files with 7 additions and 7 deletions

View File

@@ -11,11 +11,11 @@ services:
prometheus:
build:
context: prometheus
args:
# Linux: http://localhost:8008
# MacOSX: http://host.docker.internal:8008
BEACON_URL: localhost:8008
VC_URL: localhost:5064
environment:
# Linux: http://localhost:8008
# MacOSX: http://host.docker.internal:8008
BEACON_URL: localhost:8008
VC_URL: localhost:5064
restart: always
network_mode: host
volumes:

View File

@@ -9,7 +9,7 @@ RUN chmod +x /etc/prometheus/entrypoint.sh
# net host: "localhost:8008"
# MacOSX: "host.docker.internal:8008"
ENV BEACON_URL='beacon_node:8008'
ENV VC_URL='validator'
ENV VC_URL='validator:5064'
VOLUME /prometheus
ENTRYPOINT ["/etc/prometheus/entrypoint.sh"]
@@ -17,4 +17,4 @@ ENTRYPOINT ["/etc/prometheus/entrypoint.sh"]
CMD [ \
"--config.file=/etc/prometheus/prometheus.yml", \
"--storage.tsdb.path=/prometheus" \
]
]