-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use WorkingSetBytes if memory usage is not reported #25407
Use WorkingSetBytes if memory usage is not reported #25407
Conversation
❌ Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
❕ Build Aborted
Expand to view the summary
Build stats
Trends 🧪Steps errorsExpand to view the steps failures
|
Pinging @elastic/integrations (Team:Integrations) |
Hi @brianharwell, could you please sign the Elastic CLA using the same email address as you used for commits to this PR? That will let us then proceed with reviewing it. Thanks! |
@ycombinator I signed it |
@brianharwell It needs to be signed with the same email address as you use for your git commits. It looks like you signed the CLA with your gmail.com email address but your commit is authored with your paylocity.com email address. |
@ycombinator Ok, I understand. I'll fix and resubmit |
@ycombinator I created a new PR with correct email address here #25428 |
What does this PR do?
This will use
workingSetBytes
for the memory usage ifusageMem
is zeroWhy is it important?
We have Windows containers running in Kubernetes but the kubelet only reports the working set bytes for a pod and not the memory usage bytes. As a result the field
kubernetes.pod.memory.usage.limit.pct
is reported as0
even though the pod has a memory limit.This is important because without
kubernetes.pod.memory.usage.limit.pct
we cannot alert or monitor based on how close the pod's memory is compared to it's memory limit.The memory usage bytes is reported for linux pods.
Here is a sample from the kubelet. Metricbeat uses this json to report pod metrics.
Checklist
I have zero experience with Go. I didn't want to ask someone else to make the change because this seemed rather simple.
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Test using a Linux container and a Windows container. I can assist with both of these.
Related issues
Elastic Support Ticket #00711427
Use cases
N/A
Screenshots
Logs