From e4d7e08a0c8cc666149fa2e8d73816b2bd3811ea Mon Sep 17 00:00:00 2001 From: Vimal Kumar Date: Thu, 22 Aug 2024 23:43:30 +0530 Subject: [PATCH 1/2] fix(compose): remove unwanted dependency on kepler-latest Signed-off-by: Vimal Kumar --- manifests/compose/default/override.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/manifests/compose/default/override.yaml b/manifests/compose/default/override.yaml index f6ce6d5a3e..c81908fdd5 100644 --- a/manifests/compose/default/override.yaml +++ b/manifests/compose/default/override.yaml @@ -2,8 +2,6 @@ services: prometheus: networks: - kepler-network - depends_on: - - kepler-latest volumes: - type: bind source: ../default/prometheus/scrape-configs/latest.yaml From d0dc915074f16d13184080d3b5fa1c7e980e2be9 Mon Sep 17 00:00:00 2001 From: Vimal Kumar Date: Thu, 22 Aug 2024 23:46:01 +0530 Subject: [PATCH 2/2] feat(compose): add node-exporter for rapl metrics node-exporter provides rapl power metrics - node_rapl_core_joules_total - node_rapl_uncore_joules_total - node_rapl_package_joules_total - node_rapl_psys_joules_total Signed-off-by: Vimal Kumar --- manifests/compose/dev/compose.yaml | 28 +++++++++++++++++++ .../dev/prometheus/scrape-configs/dev.yaml | 4 +++ 2 files changed, 32 insertions(+) diff --git a/manifests/compose/dev/compose.yaml b/manifests/compose/dev/compose.yaml index 3350b56ede..338708f581 100644 --- a/manifests/compose/dev/compose.yaml +++ b/manifests/compose/dev/compose.yaml @@ -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: diff --git a/manifests/compose/dev/prometheus/scrape-configs/dev.yaml b/manifests/compose/dev/prometheus/scrape-configs/dev.yaml index 556caacb27..980945d046 100644 --- a/manifests/compose/dev/prometheus/scrape-configs/dev.yaml +++ b/manifests/compose/dev/prometheus/scrape-configs/dev.yaml @@ -6,3 +6,7 @@ scrape_configs: - job_name: scaphandre static_configs: - targets: [scaphandre:8080] + + - job_name: node-exporter + static_configs: + - targets: [node-exporter:9100]