diff --git a/manifests/compose/dev/compose.yaml b/manifests/compose/dev/compose.yaml index 9cde543def..2f0c486880 100644 --- a/manifests/compose/dev/compose.yaml +++ b/manifests/compose/dev/compose.yaml @@ -136,8 +136,24 @@ services: networks: - libvirt-exporter-network + process-exporter: + image: ncabatoff/process-exporter + privileged: true + ports: + - 9256:9256 + command: + - --procfs=/host/proc + - --config.path=/config/process-exporter.yaml + volumes: + - ./config/process-exporter.yaml:/config/process-exporter.yaml + - /proc:/host/proc:ro + + networks: + - process-exporter-network + networks: scaph-network: kepler-network: node-exporter-network: libvirt-exporter-network: + process-exporter-network: diff --git a/manifests/compose/dev/config/process-exporter.yaml b/manifests/compose/dev/config/process-exporter.yaml new file mode 100644 index 0000000000..170f1eb945 --- /dev/null +++ b/manifests/compose/dev/config/process-exporter.yaml @@ -0,0 +1,4 @@ +process_names: + - name: "{{.PID}}" + cmdline: + - ".+" # yamllint disable-line rule:quoted-strings diff --git a/manifests/compose/dev/override.yaml b/manifests/compose/dev/override.yaml index 80578b4064..498190a3bc 100644 --- a/manifests/compose/dev/override.yaml +++ b/manifests/compose/dev/override.yaml @@ -18,3 +18,4 @@ services: - scaph-network - node-exporter-network - libvirt-exporter-network + - process-exporter-network diff --git a/manifests/compose/dev/prometheus/scrape-configs/dev.yaml b/manifests/compose/dev/prometheus/scrape-configs/dev.yaml index 7c9d7195ee..b8d34a85e8 100644 --- a/manifests/compose/dev/prometheus/scrape-configs/dev.yaml +++ b/manifests/compose/dev/prometheus/scrape-configs/dev.yaml @@ -14,3 +14,7 @@ scrape_configs: - job_name: libvirt-exporter static_configs: - targets: [libvirt-exporter:9177] + + - job_name: process-exporter + static_configs: + - targets: [process-exporter:9256] diff --git a/manifests/compose/validation/config/process-exporter.yaml b/manifests/compose/validation/config/process-exporter.yaml new file mode 100644 index 0000000000..170f1eb945 --- /dev/null +++ b/manifests/compose/validation/config/process-exporter.yaml @@ -0,0 +1,4 @@ +process_names: + - name: "{{.PID}}" + cmdline: + - ".+" # yamllint disable-line rule:quoted-strings diff --git a/manifests/compose/validation/metal/compose.yaml b/manifests/compose/validation/metal/compose.yaml index 6b12b910c6..198ec71149 100644 --- a/manifests/compose/validation/metal/compose.yaml +++ b/manifests/compose/validation/metal/compose.yaml @@ -143,11 +143,28 @@ services: networks: - libvirt-exporter-network + process-exporter: + image: ncabatoff/process-exporter + privileged: true + ports: + - 9256:9256 + command: + - --procfs=/host/proc + - --config.path=/config/process-exporter.yaml + volumes: + - ../config/process-exporter.yaml:/config/process-exporter.yaml + - /proc:/host/proc:ro + + networks: + - process-exporter-network + networks: scaph-network: kepler-network: node-exporter-network: libvirt-exporter-network: + process-exporter-network: + # # # NOTE: To allow access to VM from prometheus container diff --git a/manifests/compose/validation/metal/override.yaml b/manifests/compose/validation/metal/override.yaml index 143239b7e8..b741af6c61 100644 --- a/manifests/compose/validation/metal/override.yaml +++ b/manifests/compose/validation/metal/override.yaml @@ -17,6 +17,7 @@ services: - kepler-network - node-exporter-network - libvirt-exporter-network + - process-exporter-network - virt-net # external n/w for accessing VM volumes: - type: bind diff --git a/manifests/compose/validation/metal/prometheus/scrape-configs/metal.yaml b/manifests/compose/validation/metal/prometheus/scrape-configs/metal.yaml index 0af60961eb..fcbcb6f99d 100644 --- a/manifests/compose/validation/metal/prometheus/scrape-configs/metal.yaml +++ b/manifests/compose/validation/metal/prometheus/scrape-configs/metal.yaml @@ -18,3 +18,7 @@ scrape_configs: - job_name: libvirt-exporter static_configs: - targets: [libvirt-exporter:9177] + + - job_name: process-exporter + static_configs: + - targets: [process-exporter:9256]