Skip to content

Commit

Permalink
Fix prometheus in local metrics docker setup (#5123)
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Feb 10, 2023
1 parent 4d3af90 commit 914397a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions docker/docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions docker/prometheus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ 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"]

CMD [ \
"--config.file=/etc/prometheus/prometheus.yml", \
"--storage.tsdb.path=/prometheus" \
]
]

0 comments on commit 914397a

Please sign in to comment.