From f4f78ddc28d65a05e4031f14142588502bb2fcc3 Mon Sep 17 00:00:00 2001 From: Daniil Polyakov Date: Tue, 28 Jul 2026 23:54:55 +0300 Subject: [PATCH] fix(sequencer): expose 9000 metrics port from docker --- lez/sequencer/service/Dockerfile | 3 ++- lez/sequencer/service/docker-compose.yml | 1 + monitoring/prometheus/prometheus.yml | 5 ----- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lez/sequencer/service/Dockerfile b/lez/sequencer/service/Dockerfile index 1919f775..2e0b89a9 100644 --- a/lez/sequencer/service/Dockerfile +++ b/lez/sequencer/service/Dockerfile @@ -63,8 +63,9 @@ COPY --from=builder --chown=sequencer_service_user:sequencer_service_user /usr/l VOLUME /var/lib/sequencer_service -# Expose default port +# Expose default ports EXPOSE 3040 +EXPOSE 9000 # Health check (TODO #244: Replace when a real health endpoint is available) HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ diff --git a/lez/sequencer/service/docker-compose.yml b/lez/sequencer/service/docker-compose.yml index 477072ad..d9c573d3 100644 --- a/lez/sequencer/service/docker-compose.yml +++ b/lez/sequencer/service/docker-compose.yml @@ -18,6 +18,7 @@ services: container_name: sequencer_service ports: - "3040:3040" + - "9000:9000" volumes: # Mount configuration file - ./configs/docker/sequencer_config.json:/etc/sequencer_service/sequencer_config.json diff --git a/monitoring/prometheus/prometheus.yml b/monitoring/prometheus/prometheus.yml index aaae81b0..a4793aba 100644 --- a/monitoring/prometheus/prometheus.yml +++ b/monitoring/prometheus/prometheus.yml @@ -6,10 +6,5 @@ scrape_configs: - job_name: sequencer metrics_path: /metrics static_configs: - # `sequencer_service:9000` resolves when monitoring runs inside the - # all-in-one compose network. `host.docker.internal:9000` resolves when - # the sequencer runs natively on the host and only monitoring runs in Docker. - # Whichever is unreachable stays `down`. - targets: - - sequencer_service:9000 - host.docker.internal:9000