-
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 for disk reads and writes per cgroup (#121)
<!-- Type of change Please label this PR with one of the following labels, depending on the scope of your change: - Bug - Enhancement - Breaking change - Deprecation - Cleanup - Docs --> ## What does this PR do? This PR adds reads and writes metrics for cgroups V1. Currently, only the total of reads and writes is available and this metric alone is not really useful to understand what is happening inside a container. ## Why is it important? These metrics are important to understand what is happening inside a container running on Kubernetes or Docker and to attribute reads and writes on a host to running containers. ## Checklist <!-- Mandatory Add a checklist of things that are required to be reviewed in order to have the PR approved List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~) --> - [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 - [x] I have added an entry in `CHANGELOG.md` ## Author's Checklist <!-- Recommended Add a checklist of things that are required to be reviewed in order to have the PR approved --> ## Related issues <!-- Recommended Link related issues below. Insert the issue link or reference after the word "Closes" if merging this should automatically close it. - Closes #123 - Relates #123 - Requires #123 - Superseds #123 --> -
- Loading branch information
Showing
5 changed files
with
31 additions
and
20 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
14 changes: 7 additions & 7 deletions
14
...1b7eff959f64b4192c34d5d67a707fe8561e9eaa608cb27693fba4242/blkio.throttle.io_service_bytes
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
7:0 Read 4608 | ||
7:0 Write 0 | ||
7:0 Write 1024 | ||
7:0 Sync 0 | ||
7:0 Async 4608 | ||
7:0 Total 4608 | ||
7:0 Async 5632 | ||
7:0 Total 5632 | ||
253:0 Read 4608 | ||
253:0 Write 0 | ||
253:0 Write 2048 | ||
253:0 Sync 0 | ||
253:0 Async 4608 | ||
253:0 Total 4608 | ||
253:0 Async 6656 | ||
253:0 Total 6656 | ||
253:1 Read 1638912 | ||
253:1 Write 0 | ||
253:1 Sync 0 | ||
253:1 Async 1638912 | ||
253:1 Total 1638912 | ||
Total 1648128 | ||
Total 1651200 |
14 changes: 7 additions & 7 deletions
14
...9faf21b7eff959f64b4192c34d5d67a707fe8561e9eaa608cb27693fba4242/blkio.throttle.io_serviced
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
7:0 Read 2 | ||
7:0 Write 0 | ||
7:0 Write 1 | ||
7:0 Sync 0 | ||
7:0 Async 2 | ||
7:0 Total 2 | ||
7:0 Async 3 | ||
7:0 Total 3 | ||
253:0 Read 2 | ||
253:0 Write 0 | ||
253:0 Write 1 | ||
253:0 Sync 0 | ||
253:0 Async 2 | ||
253:0 Total 2 | ||
253:1 Read 42 | ||
253:1 Write 0 | ||
253:1 Sync 0 | ||
253:1 Async 42 | ||
253:1 Total 42 | ||
Total 46 | ||
253:1 Async 43 | ||
253:1 Total 43 | ||
Total 48 |