Add zswap metrics: bytes_used and compression_efficiency - #1337
Add zswap metrics: bytes_used and compression_efficiency#1337divikchotani-oss wants to merge 1 commit into
Conversation
|
|
|
Welcome @divikchotani-oss! |
|
Hi @divikchotani-oss. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
/test pull-npd-e2e-test |
|
/assign @wangzhen127 |
04da8a4 to
2e971c9
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: AnishShah, divikchotani-oss The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
| klog.Fatalf("Error initializing metric for %q: %v", metrics.MemoryDirtyUsedID, err) | ||
| } | ||
|
|
||
| if _, ok := memoryConfig.MetricsConfigs[string(metrics.MemoryZswapBytesUsedID)]; ok { |
There was a problem hiding this comment.
Can you add some unit test?
There was a problem hiding this comment.
and can you squash the commits after the update?
There was a problem hiding this comment.
I added unit tests for zswap to the commit and squashed it all into one commit, thanks
2e971c9 to
cdbbadf
Compare
|
New changes are detected. LGTM label has been removed. |
This commit adds tracking for memory/zswap_bytes_used and memory/zswap_compression_efficiency via procfs.