Skip to content

Commit

Permalink
Merge pull request #1727 from vimalk78/add-node-exporter
Browse files Browse the repository at this point in the history
feat(compose): add node-exporter for rapl metrics
  • Loading branch information
sthaha authored Aug 22, 2024
2 parents 8bcbc25 + d0dc915 commit de1aad9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
2 changes: 0 additions & 2 deletions manifests/compose/default/override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ services:
prometheus:
networks:
- kepler-network
depends_on:
- kepler-latest
volumes:
- type: bind
source: ../default/prometheus/scrape-configs/latest.yaml
Expand Down
28 changes: 28 additions & 0 deletions manifests/compose/dev/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,34 @@ services:
networks:
- scaph-network

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)($$|/)
privileged: true
user: root
cap_add:
- ALL
networks:
- kepler-network

networks:
scaph-network:
kepler-network:
4 changes: 4 additions & 0 deletions manifests/compose/dev/prometheus/scrape-configs/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ scrape_configs:
- job_name: scaphandre
static_configs:
- targets: [scaphandre:8080]

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

0 comments on commit de1aad9

Please sign in to comment.