Skip to content

Commit

Permalink
Fix aggregator metrics server address and standardize service names (#…
Browse files Browse the repository at this point in the history
…169)

* refactor: Standardize setup service names

* fix: Only expose metrics ports

* fix: Fix aggregator setup local metrics_ip_port_address

* fix: Set new service names in depends_on
  • Loading branch information
Hyodar authored May 22, 2024
1 parent 9605058 commit 3d5e228
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion setup/aggregator/config/aggregator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ rollup_ids_to_registry_addresses:

# metrics related
enable_metrics: true
metrics_ip_port_address: 127.0.0.1:9091
metrics_ip_port_address: 0.0.0.0:9091
6 changes: 3 additions & 3 deletions setup/aggregator/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ networks:
driver: bridge

services:
aggregator:
near-sffl-aggregator:
image: ghcr.io/nethermindeth/near-sffl/aggregator:${SFFL_RELEASE}
container_name: near-sffl-aggregator
volumes:
Expand All @@ -24,7 +24,7 @@ services:
ports:
- "4001:4001"
- "4002:4002"
- "9091:9091"
- "127.0.0.1:9091:9091"
logging:
driver: "json-file"
options:
Expand Down Expand Up @@ -66,7 +66,7 @@ services:
- --web.enable-remote-write-receiver
restart: unless-stopped
ports:
- "9090:9090"
- "127.0.0.1:9090:9090"
extra_hosts:
- "host.docker.internal:host-gateway"

Expand Down
8 changes: 4 additions & 4 deletions setup/operator/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
networks:
- near-sffl

indexer:
near-sffl-indexer:
profiles: [indexer]
image: ghcr.io/nethermindeth/near-sffl/indexer:${SFFL_RELEASE}
container_name: near-sffl-indexer
Expand Down Expand Up @@ -53,14 +53,14 @@ services:
max-file: "10"
compress: "true"

operator:
near-sffl-operator:
profiles: [operator]
image: ghcr.io/nethermindeth/near-sffl/operator:${SFFL_RELEASE}
container_name: near-sffl-operator
depends_on:
rmq:
condition: service_healthy
indexer:
near-sffl-indexer:
condition: service_healthy
ports:
- "127.0.0.1:9091:9091"
Expand All @@ -85,7 +85,7 @@ services:
profiles: [operator]
image: debian:bookworm
depends_on:
operator:
near-sffl-operator:
condition: service_started
command: sh -c "apt update && apt install -y netcat-traditional && sleep infinity"
healthcheck:
Expand Down

0 comments on commit 3d5e228

Please sign in to comment.