chore(prometheus): add localhost:9001 scrape target (#3606)

This commit is contained in:
Alexey Shekhirin
2023-07-06 21:11:16 +01:00
committed by GitHub
parent fdc8a05320
commit b8a5476704
2 changed files with 3 additions and 3 deletions

View File

@ -63,11 +63,11 @@ To run Reth with Docker, run:
docker run \ docker run \
-v rethdata:/root/.local/share/reth/db \ -v rethdata:/root/.local/share/reth/db \
-d \ -d \
-p 9000:9000 \ -p 9001:9001 \
--name reth \ --name reth \
reth:local \ reth:local \
node \ node \
--metrics 0.0.0.0:9000 --metrics 0.0.0.0:9001
``` ```
The above command will create a container named `reth` and a named volume called `rethdata` for data persistence. The above command will create a container named `reth` and a named volume called `rethdata` for data persistence.

View File

@ -3,7 +3,7 @@ scrape_configs:
metrics_path: "/" metrics_path: "/"
scrape_interval: 5s scrape_interval: 5s
static_configs: static_configs:
- targets: ['reth:9001'] - targets: ['reth:9001', 'localhost:9001']
- job_name: ethereum-metrics-exporter - job_name: ethereum-metrics-exporter
metrics_path: "/metrics" metrics_path: "/metrics"
scrape_interval: 5s scrape_interval: 5s