Skip to content

Commit

Permalink
feat: introduce Makefile variable $(OTEL_EXPORTER_PROMETHEUS_PORT)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Mar 20, 2021
1 parent 6ef8a69 commit 6cc2e4f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions packages/cosmic-swingset/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ FAKE_CHAIN_DELAY = 0
NUM_SOLOS?=1
BASE_PORT?=8000

OTEL_EXPORTER_PROMETHEUS_PORT = 9461

# On a host machine. Stay here.
INSPECT_ADDRESS = 127.0.0.1

Expand Down Expand Up @@ -66,7 +68,7 @@ scenario2-setup-nobuild:
$(MAKE) set-local-gci-ingress

scenario2-run-chain:
OTEL_EXPORTER_PROMETHEUS_PORT=9464 \
OTEL_EXPORTER_PROMETHEUS_PORT=$(OTEL_EXPORTER_PROMETHEUS_PORT) \
$(AGC) `$(BREAK_CHAIN) && echo --inspect-brk` --home=t1/n0 start --log_level=warn

# Provision and start a client.
Expand Down Expand Up @@ -108,9 +110,11 @@ scenario3-setup:
scenario3-run-client: scenario3-run
# Set the fake chain here in case the delay has changed.
scenario3-run:
(cd t3 && \
../bin/ag-solo set-fake-chain --delay=$(FAKE_CHAIN_DELAY) mySimGCI)
cd t3 && OTEL_EXPORTER_PROMETHEUS_PORT=9464 ../bin/ag-solo start
cd t3 && \
../bin/ag-solo set-fake-chain --delay=$(FAKE_CHAIN_DELAY) mySimGCI
cd t3 && \
OTEL_EXPORTER_PROMETHEUS_PORT=$(OTEL_EXPORTER_PROMETHEUS_PORT) \
../bin/ag-solo start

docker-pull:
for f in '' -setup -solo; do \
Expand Down

0 comments on commit 6cc2e4f

Please sign in to comment.