CPU utilization for a Java process inside k8s container #8817
Unanswered
mircea-lemnaru-aera
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We currently have a bunch of services running inside K8s , each one using Java8 ( post u191 so with container support)
Attached to each of the services we have an Otel Agent and we also have a Otel Collector sidecar for each of the service containers.
When looking in Grafana we see something like this:
This graph is based on the:
process_runtime_jvm_system_cpu_utilization
metric , but I believe that this is giving us the CPU percentage of all the CPU available in the current machine and our case the entire K8s node.This is not that relevant to us and we are looking for a way to display the CPU usage / container.
Is there a way that we can display the total cpu used from inside the container and not the host node ?
For example I would like to know where we are (in terms of usage) in relation to the total amount of CPU that was assigned by K8s to this container.
Any idea what metric we can use or maybe how to combine more ?
Or , maybe generate one of our own ?
But this seems such a common problem / question that I am sure it was asked / answered before
Thank you
Mircea
Beta Was this translation helpful? Give feedback.
All reactions