Skip to content

Commit

Permalink
Merge pull request #1840 from KaiyiLiu1234/add-process-exporter
Browse files Browse the repository at this point in the history
feat(process-exporter): Add process-exporter to dev and metal
  • Loading branch information
KaiyiLiu1234 authored Nov 19, 2024
2 parents 11711e7 + 9ef9706 commit 6fb28dc
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 0 deletions.
16 changes: 16 additions & 0 deletions manifests/compose/dev/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
4 changes: 4 additions & 0 deletions manifests/compose/dev/config/process-exporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
process_names:
- name: "{{.PID}}"
cmdline:
- ".+" # yamllint disable-line rule:quoted-strings
1 change: 1 addition & 0 deletions manifests/compose/dev/override.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ services:
- scaph-network
- node-exporter-network
- libvirt-exporter-network
- process-exporter-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 @@ -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]
4 changes: 4 additions & 0 deletions manifests/compose/validation/config/process-exporter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
process_names:
- name: "{{.PID}}"
cmdline:
- ".+" # yamllint disable-line rule:quoted-strings
17 changes: 17 additions & 0 deletions manifests/compose/validation/metal/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 6fb28dc

Please sign in to comment.