k3s/pkg/kubelet/stats
Yu-Ju Hong 191666d6a3 Fix computing of cpu nano core usage
CRI runtimes do not supply cpu nano core usage as it is not part of CRI
stats. However, there are upstream components that still rely on such
stats to function. The previous fix was faulty because the multiple
callers could compete and update the stats, causing
inconsistent/incoherent metrics. This change, instead, creates a
separate call for updating the usage, and rely on eviction manager,
which runs periodically, to trigger the updates. The caveat is that if
eviction manager is completley turned off, no one would compute the
usage.
2019-03-05 09:25:40 -08:00
..
pidlimit Implement SupportNodePidsLimit, hand-tested 2019-02-13 14:56:17 -05:00
BUILD Revert "Add network stats for Windows containers" 2019-02-15 12:20:23 +08:00
cadvisor_stats_provider.go Fix computing of cpu nano core usage 2019-03-05 09:25:40 -08:00
cadvisor_stats_provider_test.go use Pod.Status.StartTime as pod's cgroup start time in summary API 2018-12-14 14:26:55 -08:00
cri_stats_provider.go Fix computing of cpu nano core usage 2019-03-05 09:25:40 -08:00
cri_stats_provider_test.go Fix computing of cpu nano core usage 2019-03-05 09:25:40 -08:00
helper.go cri_stats_provider: overload nil as 0 for exited containers stats 2019-02-28 10:41:15 +08:00
helper_test.go
log_metrics_provider.go Adding per container stats for CRI runtimes 2018-02-20 19:50:47 -08:00
log_metrics_provider_test.go Test cases to verify container log stats 2018-02-21 13:01:49 -08:00
stats_provider.go Fix computing of cpu nano core usage 2019-03-05 09:25:40 -08:00
stats_provider_test.go Fix computing of cpu nano core usage 2019-03-05 09:25:40 -08:00