Antonio Ojea
9c2b333925
Revert "plumb context from CRI calls through kubelet"
...
This reverts commit f43b4f1b95
.
2022-11-02 13:37:23 +00:00
David Ashpole
f43b4f1b95
plumb context from CRI calls through kubelet
2022-10-28 02:55:28 +00:00
Davanum Srinivas
ab690750df
Switch to v3 of github.com/emicklei/go-restful
...
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
2022-06-09 14:11:41 -04:00
vikram Jadhav
0de4397490
mockery to mockgen conversion
2021-09-25 16:15:08 +00:00
Sahil Raja
8eee78a61f
Update github.com/pkg/errors to go native errors pkg
...
Signed-off-by: Sahil Raja <sahil.raja@mayadata.io>
2021-06-21 23:03:14 +05:30
Niels de Vos
e22012950b
Add Kubelet.ListBlockVolumesForPod()
2021-04-22 08:36:20 +02:00
pacoxu
cd54bd94e9
deprecate cAdvisor json metrics collected by Kubelet
...
- remove unused code for cadvisor json metrics collected
Signed-off-by: pacoxu <paco.xu@daocloud.io>
2021-03-02 15:36:21 +08:00
chenyw1990
db5de9169f
pkg/kubelet/server: migrate to structured logs
2021-02-09 15:34:52 +08:00
Marek Siarkowicz
7d309e0104
Move Kubelet Summary API to staging repo
2020-09-22 18:23:28 +02:00
David Ashpole
1f70708f6c
update cAdvisor to v0.37.0
2020-07-09 10:23:10 -07: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
Rodrigo Villablanca
ae603b8ef1
Add some testing
2020-04-13 12:47:07 -04:00
Rodrigo Villablanca
0972c9ba4d
Improvements
2020-04-13 12:47:07 -04:00
Rodrigo Villablanca
a68482290d
Handling error returned by request.Request.ParseForm()
2020-04-13 12:47:07 -04:00
David Ashpole
785d40923a
add kubelet flag to disable cadvisor json apis, and mark it deprecrated
2019-05-30 10:39:45 -07: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
Aldo Culquicondor
e61cd68bf3
Fix lint on pkg/kubelet/server/...
2019-02-21 10:31:41 -05:00
Davanum Srinivas
954996e231
Move from glog to klog
...
- Move from the old github.com/golang/glog to k8s.io/klog
- klog as explicit InitFlags() so we add them as necessary
- we update the other repositories that we vendor that made a similar
change from glog to klog
* github.com/kubernetes/repo-infra
* k8s.io/gengo/
* k8s.io/kube-openapi/
* github.com/google/cadvisor
- Entirely remove all references to glog
- Fix some tests by explicit InitFlags in their init() methods
Change-Id: I92db545ff36fcec83afe98f550c9e630098b3135
2018-11-10 07:50:31 -05:00
Krzysztof Jastrzebski
3b21995c95
Process only CPU and memory stats when Kubelete stats API is called with
...
only_cpu_and_memory parameter. Before all stats were processed and
removed before returning.
2018-09-20 12:35:56 +02:00
Krzysztof Jastrzebski
138a3c7172
Add "only_cpu_and_memory" GET parameter to /stats/summary http handler in kubelet. If parameter is true then only cpu and memory will be present in response. The parameter will be used by Metric Server to avoid sending/decoding unneeded data.
2018-09-06 21:49:00 +02:00
Derek Carr
a09990cd43
Apply pod name and namespace labels for pod cgroup for cadvisor metrics
2018-05-07 14:51:12 -04:00
David Ashpole
960856f4e8
collect metrics on the /kubepods cgroup on-demand
2018-02-17 12:32:40 -08:00
Da K. Ma
9a78753144
Updated PID pressure node condition.
...
Signed-off-by: Da K. Ma <madaxa@cn.ibm.com>
2018-01-14 18:26:00 +08:00
David Ashpole
f6721480f4
enable on-demand metrics for eviction
2018-01-08 10:20:02 -08:00
Yang Guo
f9767d2f71
Change StatsProvider interface to provide container stats from either cadvisor or CRI and implement this interface using cadvisor
2017-08-25 13:11:26 -07:00
Chao Xu
60604f8818
run hack/update-all
2017-06-22 11:31:03 -07:00
Chao Xu
f4989a45a5
run root-rewrite-v1-..., compile
2017-06-22 10:25:57 -07:00
Clayton Coleman
469df12038
refactor: move ListOptions references to metav1
2017-01-23 17:52:46 -05:00
deads2k
6a4d5cd7cc
start the apimachinery repo
2017-01-11 09:09:48 -05:00
Chao Xu
5e1adf91df
cmd/kubelet
2016-11-23 15:53:09 -08:00
Jordan Liggitt
a602ae77b8
Move kubelet api paths to constants
2016-10-25 03:40:08 -04:00
mbohlool
25afcc5522
Add +optional tag to all fields with omitempty json tag
2016-10-17 08:52:13 -07:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
k8s-merge-robot
f1e528eab6
Merge pull request #25933 from timstclair/subcontainers
...
Automatic merge from submit-queue
Handle cAdvisor partial failures
Kubernetes side of https://github.com/google/cadvisor/issues/1286
Partially fixes https://github.com/kubernetes/kubernetes/issues/25131
(Depends on cAdvisor Godeps bump https://github.com/kubernetes/kubernetes/pull/25914 )
/cc @kubernetes/sig-node
2016-05-22 04:50:01 -07:00
Tim St. Clair
b05b419c25
Handle cAdvisor partial failures
2016-05-19 19:29:31 -07:00
Shaya Potter
ae08ef38d7
kubelet/cadvisor: Refactor cadvisor disk stat/usage interfaces
2016-05-19 11:13:47 -07:00
derekwaynecarr
22fc4340a7
Expose SummaryProvider for reuse by other parts of kubelet
2016-04-08 14:25:39 -04:00
Tim St. Clair
8cb820be0e
Set correct applicatoin/json mime type for some kubelet endpoints
2016-03-14 18:04:17 -07:00
Phillip Wittrock
3de94cd23c
Supply volume fs metrics to server/stats/handler.go
...
* Metrics will not be expose until they are hooked up to a handler
* Metrics are not cached and expose a dos vector, this must be fixed before release or the stats should not be exposed through an api endpoint
2016-02-05 16:00:24 -08:00
Phillip Wittrock
ba5be34574
Kubelet Metrics Summary Api Implementation
2016-02-04 14:05:28 -08:00
Tim St. Clair
5a0dc30b51
Add blank /stats/summary kubelet endpoint
...
Add a `/stats/summary` endpoint to the kubelet which will return an
empty Summary{} struct (json formatted), as a summary API
placeholder. Once the next cAdvisor release is vendored, the summary
API will be filled in.
2016-01-15 14:55:54 -08:00
Tim St. Clair
3c72506f10
Fixed test & error code
2016-01-07 11:55:26 -08:00
Tim St. Clair
368447ff3f
Rector kubelet stats serving
...
Changes include:
- Moving stats serving & routes to pkg/kubelet/server/stats/handler.go
- Managing the routes with restful.WebService, rather than manual
parsing
- Misc cleanup
These changes will make adding the new routes for /stats/summary more
manageable.
2016-01-06 17:37:12 -08:00