mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(prometheus): add localhost:9001 scrape target (#3606)
This commit is contained in:
@ -63,11 +63,11 @@ To run Reth with Docker, run:
|
||||
docker run \
|
||||
-v rethdata:/root/.local/share/reth/db \
|
||||
-d \
|
||||
-p 9000:9000 \
|
||||
-p 9001:9001 \
|
||||
--name reth \
|
||||
reth:local \
|
||||
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.
|
||||
|
||||
@ -3,7 +3,7 @@ scrape_configs:
|
||||
metrics_path: "/"
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ['reth:9001']
|
||||
- targets: ['reth:9001', 'localhost:9001']
|
||||
- job_name: ethereum-metrics-exporter
|
||||
metrics_path: "/metrics"
|
||||
scrape_interval: 5s
|
||||
|
||||
Reference in New Issue
Block a user