From b8a547670485f3571f49a348f221688f84495e91 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Thu, 6 Jul 2023 21:11:16 +0100 Subject: [PATCH] chore(prometheus): add `localhost:9001` scrape target (#3606) --- book/installation/docker.md | 4 ++-- etc/prometheus/prometheus.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/book/installation/docker.md b/book/installation/docker.md index 6a101141b..95ddb86b4 100644 --- a/book/installation/docker.md +++ b/book/installation/docker.md @@ -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. diff --git a/etc/prometheus/prometheus.yml b/etc/prometheus/prometheus.yml index e2a690b71..483dcaa05 100644 --- a/etc/prometheus/prometheus.yml +++ b/etc/prometheus/prometheus.yml @@ -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