diff --git a/.env.sample.holesky b/.env.sample.holesky index ecd96334..c8bb3bde 100644 --- a/.env.sample.holesky +++ b/.env.sample.holesky @@ -168,6 +168,10 @@ LIDODVEXIT_EXIT_EPOCH=256 # See available tags https://github.com/prometheus/prometheus/releases. #PROMETHEUS_VERSION= +# Node Exporter docker container image version, e.g. `latest` or `v1.9.0`. +# See available tags at https://github.com/prometheus/node_exporter/releases. +#NODE_EXPORTER_VERSION= + ######### Voluntary Exit Config ######### # This applies to compose-voluntary-exit.yml only diff --git a/.env.sample.hoodi b/.env.sample.hoodi index 4ff513fd..6c095460 100644 --- a/.env.sample.hoodi +++ b/.env.sample.hoodi @@ -168,6 +168,10 @@ LIDODVEXIT_EXIT_EPOCH=256 # See available tags https://github.com/prometheus/prometheus/releases. #PROMETHEUS_VERSION= +# Node Exporter docker container image version, e.g. `latest` or `v1.9.0`. +# See available tags at https://github.com/prometheus/node_exporter/releases. +#NODE_EXPORTER_VERSION= + ######### Voluntary Exit Config ######### # This applies to compose-voluntary-exit.yml only diff --git a/.env.sample.mainnet b/.env.sample.mainnet index 4056f841..615be054 100644 --- a/.env.sample.mainnet +++ b/.env.sample.mainnet @@ -117,6 +117,10 @@ MEVBOOST_RELAYS=https://0xa15b52576bcbf1072f4a011c0f99f9fb6c66f3e1ff321f11f461d1 # See available tags https://github.com/prometheus/prometheus/releases. #PROMETHEUS_VERSION= +# Node Exporter docker container image version, e.g. `latest` or `v1.9.0`. +# See available tags at https://github.com/prometheus/node_exporter/releases. +#NODE_EXPORTER_VERSION= + ######### Voluntary Exit Config ######### # This applies to compose-voluntary-exit.yml only diff --git a/docker-compose.yml b/docker-compose.yml index 1c41dd58..5eb0b111 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -192,6 +192,13 @@ services: - ./data/loki:/opt/loki restart: unless-stopped + node-exporter: + image: quay.io/prometheus/node-exporter:${NODE_EXPORTER_VERSION:-1.9.0} + user: ":" + networks: [dvnode] + ports: + - 9100:9100 + restart: unless-stopped # _ _ _ _ _ _ # __ ____ _| (_) __| | __ _| |_ ___ _ __ ___ (_) ___ ___| |_ ___ _ __ # \ \ / / _` | | |/ _` |/ _` | __/ _ \| '__|____ / _ \| |/ _ \/ __| __/ _ \| '__| diff --git a/prometheus/prometheus.yml b/prometheus/prometheus.yml index a5866c81..d2e177f4 100644 --- a/prometheus/prometheus.yml +++ b/prometheus/prometheus.yml @@ -24,6 +24,9 @@ scrape_configs: - job_name: "lodestar" static_configs: - targets: [ "lodestar:5064" ] + - job_name: "node-exporter" + static_configs: + - targets: [ "node-exporter:9100" ] - job_name: "validator-ejector" static_configs: - targets: [ "validator-ejector:8989" ]