Skip to content

feat(Monitoring):Add node exporter to monitoring stack #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.sample.holesky
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .env.sample.hoodi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .env.sample.mainnet
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# _ _ _ _ _ _
# __ ____ _| (_) __| | __ _| |_ ___ _ __ ___ (_) ___ ___| |_ ___ _ __
# \ \ / / _` | | |/ _` |/ _` | __/ _ \| '__|____ / _ \| |/ _ \/ __| __/ _ \| '__|
Expand Down
3 changes: 3 additions & 0 deletions prometheus/prometheus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]