Caution
Grafana Alloy is the new name for our distribution of the OTel collector. Grafana Agent has been deprecated and is in Long-Term Support (LTS) through October 31, 2025. Grafana Agent will reach an End-of-Life (EOL) on November 1, 2025. Read more about why we recommend migrating to Grafana Alloy.
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.44.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.44.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: