Kubernetes cpu usage


#1

Hi all,

I would like to find the CPU usage for each service with time. For this purpose, i am using the visual builder feature. I don't want to find the average or sum, just want to visualize the service and the memory used. To be more clear get the data as such in log and view it using the visual builder feature.

I couldn't figure a way to just get the "kubernetes.container.memory.usage" and how to convert nanocore to percentage? Can anybody help?

Thanks,
Kanthi.


(Marius Dragomir) #2

What are you using to gather the data? If you are using Metricbeat to do it, you can set the interval in TSVB to the delay set between documents in the beat and this way the average will be of only one value.


#3

@Marius_Dragomir Yes, I am using metricbeats. Can you please guide me how to do that ? I checked in metricbeats-kubernetes.yaml but couldn't find.

This is the visualization I am interested in and would like to change the nanocores to percentage and in aggregation, would like to not use sum or average instead get values as such.

Thanks.


(Marius Dragomir) #4

Here is the documentation for the kubernetes module where you can find the period:
https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-module-kubernetes.html
There is no way to use "values" in aggregation as that is not an option. The default period is 10s so if you keep the histogram interval like in the screenshot, you'll get an" average", "max" or "min" of only one document, which is exactly as showing values.
As for converting nanocores to percentage mode, i don't think that will work in this case as it depends on what data Beats collects from Kubernetes. The safest bet is to ask in the Beats subforum here as I don't really have that much experience with Kubernetes.


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.