2023-12-14 11:29:00 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
prometheus:
|
2024-01-17 08:32:10 +00:00
|
|
|
image: prom/prometheus:v2.49.1
|
2023-12-14 11:29:00 +00:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ../config/monitoring/prometheus:/etc/prometheus
|
|
|
|
- prometheus_data:/prometheus
|
|
|
|
ports:
|
|
|
|
- "9090"
|
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "nc", "-vz", "localhost", "9090"]
|
|
|
|
interval: 30s
|
|
|
|
timeout: 5s
|
|
|
|
retries: 10
|
|
|
|
start_period: 3s
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
2023-12-21 03:56:37 +00:00
|
|
|
blackbox:
|
|
|
|
image: prom/blackbox-exporter:latest
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ../config/monitoring/blackbox.yml:/etc/blackbox_exporter/config.yml
|
|
|
|
ports:
|
|
|
|
- '9115'
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
2024-05-29 13:35:32 +00:00
|
|
|
ethereum-chain-head-exporter:
|
2023-12-21 03:56:37 +00:00
|
|
|
image: cerc/watcher-ts:local
|
|
|
|
restart: always
|
|
|
|
working_dir: /app/packages/cli
|
|
|
|
environment:
|
2024-05-29 13:35:32 +00:00
|
|
|
ETH_RPC_ENDPOINT: ${CERC_ETH_RPC_ENDPOINT:-https://mainnet.infura.io/v3}
|
2023-12-21 03:56:37 +00:00
|
|
|
ETH_RPC_API_KEY: ${CERC_INFURA_KEY}
|
2024-05-29 13:35:32 +00:00
|
|
|
command: ["sh", "-c", "yarn export-metrics:chain-heads"]
|
|
|
|
ports:
|
|
|
|
- '5000'
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
|
|
|
filecoin-chain-head-exporter:
|
|
|
|
image: cerc/watcher-ts:local
|
|
|
|
restart: always
|
|
|
|
working_dir: /app/packages/cli
|
|
|
|
environment:
|
|
|
|
ETH_RPC_ENDPOINT: ${CERC_FIL_RPC_ENDPOINT:-https://api.node.glif.io/rpc/v1}
|
2023-12-21 03:56:37 +00:00
|
|
|
command: ["sh", "-c", "yarn export-metrics:chain-heads"]
|
|
|
|
ports:
|
|
|
|
- '5000'
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
2024-05-30 09:07:51 +00:00
|
|
|
graph-node-upstream-head-exporter:
|
|
|
|
image: cerc/watcher-ts:local
|
|
|
|
restart: always
|
|
|
|
working_dir: /app/packages/cli
|
|
|
|
environment:
|
|
|
|
ETH_RPC_ENDPOINT: ${GRAPH_NODE_RPC_ENDPOINT}
|
|
|
|
command: ["sh", "-c", "yarn export-metrics:chain-heads"]
|
|
|
|
ports:
|
|
|
|
- '5000'
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
2023-12-21 08:11:36 +00:00
|
|
|
postgres-exporter:
|
|
|
|
image: quay.io/prometheuscommunity/postgres-exporter
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- ../config/monitoring/postgres-exporter.yml:/postgres_exporter.yml
|
|
|
|
ports:
|
|
|
|
- '9187'
|
|
|
|
extra_hosts:
|
|
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
|
2023-12-14 11:29:00 +00:00
|
|
|
volumes:
|
|
|
|
prometheus_data:
|