elastic / elastic-agent-system-metrics

Apache License 2.0
0 stars 22 forks source link

Add metrics from /proc/[pid]/io to system/process metrics on linux #114

Closed fearful-symmetry closed 7 months ago

fearful-symmetry commented 7 months ago

What does this PR do?

Part of https://github.com/elastic/beats/issues/7461

This ended up being fairly simple; we just fetch per-process IO from procfs, and these values appear to be largely identical to what's reported by the netlink taskstat.

This just reads metrics from /proc/[pid]/io and reports them as part of other process metrics, same as how things like memory usage are reported.

Why is it important?

We want per-process I/O metrics.

Checklist