You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
edit counter-pod.yml manifest: change the pod name to counter2 and run command above again
In this setup: kind-worker is a node, where metricbeat leader is running.
Issue: kubernetes.pod.cpu.usage.limit.pct and kubernetes.pod.memory.usage.limit.pct are missing on non-leader nodes, even though cpu/mem limits are defined for the counter2 pod from the screenshot above.
The text was updated successfully, but these errors were encountered:
Enabling that metricset will help in getting some metrics for POD CPU and MEM Usage pct, however they are not accurate.
Secondly, I'm not an expert on elastic code, however looking at the metricbeat code where these metrices are computed, to me looks like the nodeCores from node metricset, should be used only as a fallback when the container limits are not available (is a default when container core limits are not found in the cache)
With system and node metrices enabled, even if we get some cpu/mem usage limit pct data for the PODs, I don't think they are pretty accurate as they are not computed based on the container limits, but based on node cores.
The nodeCores (provided by node metricset) is used as a fallback. If a container has limits defined the cache will contain this defined in the container spec cpu.limit https://github.com/elastic/beats/blob/ad192cd501359d543de1a2b0036f9f5c74aa2289/metricbeat/module/kubernetes/util/kubernetes.go#L246
To us doesn't look right that metricbeat leader computes POD metrices based on some info it finds in the cache, and the other metricbeats compute POD metrices based on different info.
Please note we were in discussion with elastic for weeks regarding this issue and we reached to a common agreement this is not the way to go (enabling node metricset).
So please don't start over!
For confirmed bugs, please report:
node
metricset is not enabled):configmap
kind create cluster --config kind-conf.yml
kind-config.yml
counter-pod.yml
edit
counter-pod.yml
manifest: change the pod name tocounter2
and run command above againIn this setup:
kind-worker
is a node, where metricbeat leader is running.Issue:
kubernetes.pod.cpu.usage.limit.pct
andkubernetes.pod.memory.usage.limit.pct
are missing on non-leader nodes, even though cpu/mem limits are defined for thecounter2
pod from the screenshot above.The text was updated successfully, but these errors were encountered: