From 127cb4244bffd46f07829ffa9ae8f41f4ea426ff Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Sat, 9 Nov 2024 18:28:20 -0500 Subject: [PATCH] feat: add host node-exporter container, prometheus target --- prometheus.yml | 3 +++ service.yml | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/prometheus.yml b/prometheus.yml index a8ccf38..d19ed52 100644 --- a/prometheus.yml +++ b/prometheus.yml @@ -5,6 +5,9 @@ scrape_configs: static_configs: - targets: ['host.containers.internal:8083'] + - job_name: 'host-node-exporter' + static_configs: + - targets: ['host.containers.internal:9100'] - job_name: 'code-forge-exporter' static_configs: - targets: ['host.containers.internal:3001'] diff --git a/service.yml b/service.yml index 0ba8b9f..2544ec7 100644 --- a/service.yml +++ b/service.yml @@ -50,6 +50,16 @@ containers: - --config.file=/etc/prometheus/prometheus.yml - name: otel-collector image: panopticon-otel-collector:latest + - name: host-metrics-exporter + image: quay.io/prometheus/node-exporter:latest + network: host + pid-namespace: host + volumes: + - host: / + container: /host + readonly: true + extra-args: + - --path.rootfs=/host - name: tempo image: panopticon-tempo:latest volumes: