Derek Carr
acb43c7c4a
Rework hostfs metrics
...
Ephemeral storage usage should be calculated by the metrics code,
not the eviction code.
2020-12-03 13:04:25 -07:00
Qiutong Song
a59a6b984f
fix CPU time of pod stats with cs.CPU.Time
...
Signed-off-by: Qiutong Song <songqt01@gmail.com>
2020-11-03 09:29:18 +00:00
Anderson Queiroz
8c724d7933
cleanup: fix golint errors in /pkg/kubelet/stats
2020-10-08 21:59:42 +02:00
Marek Siarkowicz
7d309e0104
Move Kubelet Summary API to staging repo
2020-09-22 18:23:28 +02:00
David Ashpole
0ffc149ccc
move dashpole to emeritus in kubelet
2020-09-16 11:52:35 -07:00
Jordan Liggitt
f33dc28094
generated: hack/update-hack-tools.sh && hack/update-vendor.sh
2020-07-25 16:45:02 -04:00
Kubernetes Prow Robot
86ab25f038
Merge pull request #91716 from kadisi/append_mutations_kubelet
...
fix unexpected append mutations about pkg/kubelet package
2020-06-19 21:51:08 -07:00
Kubernetes Prow Robot
677e8d6871
Merge pull request #86223 from dashpole/owners_changes
...
Add dashpole as kubelet approver
2020-06-18 22:59:58 -07:00
kadisi
a75323c76b
fix unexpected append mutations about pkg/kubelet package
...
Signed-off-by: kadisi <iamkadisi@163.com>
Co-authored-by: Dr. Stefan Schimanski <stefan.schimanski@gmail.com>
2020-06-03 13:36:57 +08:00
Davanum Srinivas
07d88617e5
Run hack/update-vendor.sh
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:33 -04:00
Davanum Srinivas
442a69c3bd
switch over k/k to use klog v2
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:54:27 -04:00
Davanum Srinivas
9006b2db69
Fix for API change in cadvisor
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2020-05-16 07:53:03 -04:00
tangcong
2b984b3e3a
fix kubelet stats staticcheck error
2020-04-21 07:16:58 +08:00
louisgong
e56d40d048
remove unused param
2020-03-24 09:25:04 +08:00
louisgong
0efb70c0a2
eviction by process number
2020-03-24 09:25:04 +08:00
Joel Smith
da988294ec
Work-around for missing metrics on CRI-O exited containers
...
HPA needs metrics for exited init containers before it will
take action. By setting memory and CPU usage to zero for any
containers that cAdvisor didn't provide statistics for, we
are assured that HPA will be able to correctly calculate
pod resource usage.
2020-03-05 13:20:43 -07:00
Kubernetes Prow Robot
ac97b2d65e
Merge pull request #83507 from lyft/support-resetting-cpuacct
...
Prevent returning invalid usageNanoCores value when cpuacct is reset in a live container
2020-02-09 08:45:53 -08:00
mattjmcnaughton
06b44c76fd
Correct comment around which integrations require cadvisor_stats
...
This commit is part of a larger effort to clean up references to `rkt`
in the kubelet.
Previously, this comment hard-coded which integrations required
the cadvisor stats provider. The comment has grown stale
(i.e. referenced rkt and did not reference cri-o).
Update the comment to instead point to the code which determines which
integrations need the cadvisor stats provider.
2020-01-05 09:23:09 -05:00
Kubernetes Prow Robot
a931227952
Merge pull request #83504 from lyft/remove-all-terminated-containers
...
cri_stats_provider: do not consider exited containers when calculating cpu usage
2019-12-16 17:53:39 -08:00
David Ashpole
fca84c02bb
add dashpole as kubelet approver
2019-12-12 11:10:24 -08:00
Ryan Phillips
4762985fb6
kubelet: guarantee at most only one cinfo per containerID
...
The trailing for loop removed within this PR can include active and
inactive references. This modification will gauarantee at most only one
reference per container is returned.
2019-12-06 14:11:08 -06:00
Jordan Liggitt
297570e06a
hack/update-vendor.sh
2019-11-06 17:42:34 -05:00
yuxiaobo
81e9f21f83
Correct spelling mistakes
...
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-11-06 20:25:19 +08:00
Ashley Kasim
7d4f555449
correctly handle resetting cpuacct in a live container
2019-11-04 13:06:43 -08:00
Ashley Kasim
4b339e6e4e
fix syntax error in test
2019-10-28 13:31:00 -07:00
Ashley Kasim
3be31530d5
cri_stats_provider: do not consider exited containers when calculating cpu usage
2019-10-04 09:07:53 -07:00
Kubernetes Prow Robot
50196ce088
Merge pull request #82300 from lyft/cri-stats-nanocores-overflow-fix
...
pkg/kubelet: fix uint64 overflow when elapsed UsageCoreNanoSeconds exceeds 18446744073
2019-09-23 17:31:38 -07:00
hwdef
4e7ef9ad36
delete unused var
2019-09-19 18:04:13 +08:00
Paul Fisher
d32aa6af1d
Add comment for testing 100+ CPU usage
2019-09-04 11:49:15 -07:00
Paul Fisher
f798cee51e
pkg/kubelet: fix uint64 overflow when elapsed UsageCoreNanoSeconds exceeds 18446744073
2019-09-03 15:54:26 -07:00
Tim Allclair
6510d26b6a
Fix misc static check issues
2019-08-21 10:40:21 -07:00
Kubernetes Prow Robot
663796e624
Merge pull request #78345 from obitech/fix_golint_pkg_kubelet_stats_client
...
Fix golint pkg/kubelet/stats/client.go
2019-08-06 13:14:49 -07:00
Kubernetes Prow Robot
acb321e614
Merge pull request #78594 from benmoss/windows-kubelet-memory-leak
...
Fix memory leak from not closing hcs containers
2019-06-03 04:40:20 -07:00
Ben Moss
1fcad1b4ab
Fix memory leak from not closing hcs container handles
2019-06-02 10:52:07 -04:00
David Ashpole
a95cf017e1
add dashpole to kubelet owners files
2019-05-29 13:33:48 -07:00
obitech
5efe2c1bb7
Fix golint issues in pkg/kubelet/stats/log_metrics_provider.go
2019-05-27 22:03:21 +02:00
Kubernetes Prow Robot
ef9e794a36
Merge pull request #77656 from yastij/check-cstat-mem
...
check if Memory is not nil for container stats
2019-05-09 17:52:23 -07:00
Yassine TIJANI
f6087365e9
check if Memory is not nil for container stats
2019-05-09 14:53:38 +02:00
Lantao Liu
11cd4242f6
Remove terminated pod from summary api.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-05-03 18:34:54 -07:00
Davanum Srinivas
33081c1f07
New staging repository for cri-api
...
Change-Id: I2160b0b0ec4b9870a2d4452b428e395bbe12afbb
2019-03-26 18:21:04 -04:00
Lantao Liu
0ac651bfc3
Include pod logs in the pod ephemeral storage.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-03-08 16:42:14 -08:00
Lantao Liu
f14c6c95d6
New pod log directory /var/log/pods/NAMESPACE_NAME_UID.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2019-03-08 16:42:14 -08:00
Pengfei Ni
d690037571
Run hack/update-bazel.sh
2019-03-07 09:55:58 +08:00
Pengfei Ni
84a7f48cf7
Add network stats for Windows containers
2019-03-07 09:54:50 +08:00
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
Kubernetes Prow Robot
4f01eb528e
Merge pull request #74336 from littleroad/exited_container
...
cri_stats_provider: Implement removeTerminatedContainer correctly
2019-02-28 19:12:07 -08:00
Lu Fengqi
3f8eda37ce
cri_stats_provider: overload nil as 0 for exited containers stats
...
Always report 0 cpu/memory usage for exited containers to make
metrics-server work as expect.
Signed-off-by: Lu Fengqi <lufq.fnst@cn.fujitsu.com>
2019-02-28 10:41:15 +08:00
Lantao Liu
f9b8d27cef
Lower the log level for non-exist cadvisor stats.
...
For exited container, it is quite normal that cri stats
are returned, but there is no corresponding cadvisor stats.
2019-02-26 16:43:42 -08:00
Kubernetes Prow Robot
a2a5bd03fd
Merge pull request #71119 from Chenditang/typo
...
Fix typos.
2019-02-20 12:54:30 -08:00
Pengfei Ni
2449b0997c
Revert "Add network stats for Windows containers"
...
This reverts commit 9cf38de44b
.
2019-02-15 12:20:23 +08:00