---
title: process_exporter_config
aliases:
- ../../../configuration/integrations/process-exporter-config/
---
process_exporter_config
The process_exporter_config
block configures the process_exporter
integration, which is an embedded version of process-exporter
and allows for collection metrics based on the /proc filesystem on Linux systems. Note that on non-Linux systems, enabling this exporter is a no-op.
Note that if running the Agent in a container, you will need to bind mount folders from the host system so the integration can monitor them:
docker run \
-v "/proc:/proc:ro" \
-v /tmp/agent:/etc/agent \
-v /path/to/config.yaml:/etc/agent-config/agent.yaml \
grafana/agent:v0.33.2 \
--config.file=/etc/agent-config/agent.yaml
Replace /path/to/config.yaml
with the appropriate path on your host system where an Agent config file can be found.
For running on Kubernetes, ensure to set the equivalent mounts and capabilities there as well:
apiVersion: v1
kind: Pod
metadata:
name: agent
spec:
containers:
- image: grafana/agent:v0.33.2
name: agent
args:
- --config.file=/etc/agent-config/agent.yaml
volumeMounts:
- name: procfs
mountPath: /proc
readOnly: true
volumes:
- name: procfs
hostPath:
path: /proc
The manifest and Tanka configs provided by this repository do not have the mounts or capabilities required for running this integration.
An example config for process_exporter_config
that tracks all processes is the following:
enabled: true
process_names:
- name: "{{.Comm}}"
cmdline:
- '.+'
Full reference of options:
[enabled: <boolean> | default = false]
[instance: <string>]
[scrape_integration: <boolean> | default = <integrations_config.scrape_integrations>]
[scrape_interval: <duration> | default = <global_config.scrape_interval>]
[scrape_timeout: <duration> | default = <global_config.scrape_timeout>]
relabel_configs:
[- <relabel_config> ... ]
metric_relabel_configs:
[ - <relabel_config> ... ]
[wal_truncate_frequency: <duration> | default = "60m"]
[procfs_path: <string> | default = "/proc"]
[track_children: <boolean> | default = true]
[track_threads: <boolean> | default = true]
[gather_smaps: <boolean> | default = true]
[recheck_on_scrape: <boolean> | default = false]
process_names:
[- <process_matcher_config>]
process_matcher_config
[name: <string> | default = "{{.ExeBase}}"]
comm:
[- <string>]
exe:
[- <string>]
cmdline:
[- <string>]