-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add metrics from /proc/[pid]/io to system/process metrics on linux (#114
) ## What does this PR do? Part of elastic/beats#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 - [x] My code follows the style guidelines of this project - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have added tests that prove my fix is effective or that my feature works - [ ] I have added an entry in `CHANGELOG.md`
- Loading branch information
1 parent
f61b864
commit a9ca78c
Showing
5 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
rchar: 10418 | ||
wchar: 8 | ||
syscr: 14 | ||
syscw: 1 | ||
read_bytes: 5243 | ||
write_bytes: 128 | ||
cancelled_write_bytes: 4 |