add the metrics and trafeik rules to optimism
This commit is contained in:
@@ -44,6 +44,18 @@ services:
|
|||||||
- "SYNC_SOURCE=l1"
|
- "SYNC_SOURCE=l1"
|
||||||
networks:
|
networks:
|
||||||
- chains
|
- chains
|
||||||
|
labels:
|
||||||
|
- "prometheus-scrape.enabled=true"
|
||||||
|
- "prometheus-scrape.port=6060"
|
||||||
|
- "prometheus-scrape.job_name=optimism"
|
||||||
|
- "prometheus-scrape.metrics_path=/debug/metrics/prometheus"
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.middlewares.optimism-archive-stripprefix.stripprefix.prefixes=/optimism-archive"
|
||||||
|
- "traefik.http.services.optimism-archive.loadbalancer.server.port=9991"
|
||||||
|
- "traefik.http.routers.optimism-archive.entrypoints=websecure"
|
||||||
|
- "traefik.http.routers.optimism-archive.tls.certresolver=myresolver"
|
||||||
|
- "traefik.http.routers.optimism-archive.rule=Host(`$DOMAIN`) && PathPrefix(`/optimism-archive`)"
|
||||||
|
- "traefik.http.routers.optimism-archive.middlewares=optimism-archive-stripprefix, ipwhitelist"
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
optimism-dtl:
|
optimism-dtl:
|
||||||
|
|||||||
@@ -14,7 +14,9 @@ exec geth \
|
|||||||
--mine \
|
--mine \
|
||||||
--miner.etherbase=$BLOCK_SIGNER_ADDRESS \
|
--miner.etherbase=$BLOCK_SIGNER_ADDRESS \
|
||||||
--gcmode=$NODE_TYPE \
|
--gcmode=$NODE_TYPE \
|
||||||
# --metrics \
|
--metrics \
|
||||||
|
--metrics.addr=0.0.0.0 \
|
||||||
|
--metric.port=6060 \
|
||||||
# --metrics.influxdb \
|
# --metrics.influxdb \
|
||||||
# --metrics.influxdb.endpoint=http://influxdb:8086 \
|
# --metrics.influxdb.endpoint=http://influxdb:8086 \
|
||||||
# --metrics.influxdb.database=l2geth \
|
# --metrics.influxdb.database=l2geth \
|
||||||
|
|||||||
Reference in New Issue
Block a user