Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(process-exporter): Add process-exporter to dev and metal #1840

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]
Loading