Skip to content

Commit

Permalink
chore(compose/metal): add node-exporter (#1760)
Browse files Browse the repository at this point in the history
Signed-off-by: Sunil Thaha <[email protected]>
  • Loading branch information
sthaha authored Sep 4, 2024
1 parent 89f868c commit 1e35c8e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
25 changes: 25 additions & 0 deletions manifests/compose/validation/metal/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,35 @@ services:
retries: ${HEALTHCHECK_RETRIES:-3}
start_period: ${HEALTHCHECK_START_PERIOD:-1m}

node-exporter:
image: quay.io/prometheus/node-exporter:latest
pid: host
ports:
- 9100:9100
volumes:
- type: bind
source: /proc
target: /host/proc
- type: bind
source: /sys
target: /host/sys
- type: bind
source: /
target: /rootfs
command:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
- --path.rootfs=/rootfs
- --collector.rapl # Enable RAPL collector
- --collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc)($$|/)
user: root
networks:
- node-exporter-network

networks:
scaph-network:
kepler-network:
node-exporter-network:
#
#
# NOTE: To allow access to VM from prometheus container
Expand Down
1 change: 1 addition & 0 deletions manifests/compose/validation/metal/override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ services:
networks:
- scaph-network
- kepler-network
- node-exporter-network
- virt-net # external n/w for accessing VM
volumes:
- type: bind
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ scrape_configs:
- job_name: metal
static_configs:
- targets: [kepler-metal:8888]

- job_name: node-exporter
static_configs:
- targets: [node-exporter:9100]

0 comments on commit 1e35c8e

Please sign in to comment.