Patrick Ohly
bc6c7fa912
logging: fix names of keys
...
The stricter checking with the upcoming logcheck v0.4.1 pointed out these names
which don't comply with our recommendations in
https://github.com/kubernetes/community/blob/master/contributors/devel/sig-instrumentation/migration-to-structured-logging.md#name-arguments .
2023-01-23 14:24:29 +01:00
Peter Hunt
1a7388c2ef
kubelet/metrics: add cri_metrics
...
that pulls metrics from the CRI
Signed-off-by: Peter Hunt <pehunt@redhat.com>
2022-11-08 14:47:08 -05:00
David Ashpole
64af1adace
Second attempt: Plumb context to Kubelet CRI calls ( #113591 )
...
* plumb context from CRI calls through kubelet
* clean up extra timeouts
* try fixing incorrectly cancelled context
2022-11-05 06:02:13 -07:00
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
JunYang
c71e3a7802
When metrics are counted, discard the wrong container startup time metrics
2022-07-15 08:56:12 +08:00
JunYang
f33652ce61
Fix kubelet panic when accessing metrics/resource endpoint
2022-07-14 16:38:48 +08:00
Kubernetes Prow Robot
5cb6fab8f6
Merge pull request #105585 from fengzixu/improvement-volume-health
...
add volume kubelet_volume_stats_health_abnormal to kubelet
2022-03-17 01:32:38 +00:00
fengzixu
7d675381f8
fix: fix panic bug when volumeHealthStatus is nil
2022-03-17 01:32:24 +00:00
Maciej Borsz
aa95513982
Revert "add volume kubelet_volume_stats_health_abnormal to kubelet"
2022-03-16 13:44:09 +01:00
fengzixu
9808ae48a0
change the volume health status metrics name
2022-01-23 02:44:10 +00:00
fengzixu
5d544d3f01
fix comment
2022-01-11 14:28:31 +00:00
fengzixu
f96449f2e2
fix unit test
2022-01-11 13:50:18 +00:00
fengzixu
e2b5b5465a
improve metrics comment
2022-01-11 13:50:18 +00:00
fengzixu
c1a58d715c
fix unit test
2022-01-11 13:50:18 +00:00
fengzixu
5593e27429
improve metrics comment
2022-01-11 13:50:18 +00:00
fengzixu
1cdc694ac2
fix unit test
2022-01-11 13:50:18 +00:00
fengzixu
4a72f08a28
add useful comment for volume stats metrics
2022-01-11 13:50:18 +00:00
fengzixu
ed7fd0ced5
add volumeHealth label to metrics
2022-01-11 13:50:17 +00:00
fengzixu
bab1755274
fix: correct metrics expression
2022-01-11 13:50:17 +00:00
fengzixu
d71e21e01e
add volume kubelet_volume_stats_health_abnormal to kubelet
2022-01-11 13:50:17 +00:00
vikram Jadhav
0de4397490
mockery to mockgen conversion
2021-09-25 16:15:08 +00:00
Sascha Grunert
2d0f99fba1
Fix resource metrics e2e test
...
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-07-05 11:16:05 +02:00
sanwishe
43f8f58895
add containers starttime metrics for metrics/resource endpoint
...
Signed-off-by: sanwishe <jiang.mingzhi35@zte.com.cn>
2021-06-24 02:53:21 +08:00
Kubernetes Prow Robot
62bb595cbe
Merge pull request #98627 from jialaijun/migrate_to_structured_logs_5
...
Migrate pkg/kubelet/metrics logs to structured logging.
2021-03-02 15:49:31 -08:00
Benjamin Elder
56e092e382
hack/update-bazel.sh
2021-02-28 15:17:29 -08:00
jialaijun
15612338e5
Migrate pkg/kubelet/metrics logs to structured logging.
2021-02-14 09:41:35 +08:00
Kubernetes Prow Robot
0e0cc1ead8
Merge pull request #95839 from egernst/pod-usage
...
resource-metrics: add pod/sandbox metrics to endpoint
2020-11-12 19:36:23 -08:00
Eric Ernst
8dfc548709
resource-metrics: add pod/sandbox metrics to endpoint
...
Pod metrics may not be the same as the sum of container metrics. Add support for pod specific
metrics to allow for more accurate accounting of resources.
Signed-off-by: Eric Ernst <eric_ernst@apple.com>
2020-11-03 09:57:46 -08:00
Marek Siarkowicz
7d309e0104
Move Kubelet Summary API to staging repo
2020-09-22 18:23:28 +02: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
David Ashpole
86192d4b9a
fix cpu resource metric type by changing to counter
2020-03-26 13:30:36 -07:00
RainbowMango
c394d821fd
Deal with auto-generated files:
...
- Update bazel by hack/update-bazel.sh
2019-12-16 10:27:02 +08:00
RainbowMango
0db7074e1a
Add new endpoint for resource metrics.
2019-12-16 10:26:54 +08:00
RainbowMango
e4a128a4f7
Deal with auto-generated files.
...
Update bazel by hack/update-bazel.sh
2019-11-08 09:16:57 +08:00
RainbowMango
ee4394a306
Migrate custom collector for kubelet
2019-11-08 09:16:57 +08:00
RainbowMango
633bb52b49
Deal with auto-generated files.
...
Update bazel by hack/update-bazel.sh
2019-10-11 09:26:58 +08:00
RainbowMango
3b07393ea8
Refactor UT with testutil from k/k.
2019-10-11 09:25:17 +08:00
SataQiu
23a8be6e5f
remove direct references to prometheus/testutil from kubelet/metrics
2019-10-10 12:56:28 +08:00
Ryan Phillips
2bdf975d5b
kubelet: add UID to kubelet_container_log_filesystem_used_bytes metric
...
buildPodRef creates a unique key with the {podName, namespace, UID}
tuple. By omitting the UID in the metric, duplicate metrics can be sent
to prometheus causing 500's on the /metrics endpoint.
2019-07-26 14:59:43 -05: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
Yecheng Fu
ccb66066a9
vendor github.com/prometheus/client_golang/prometheus/testutil package
2018-12-02 10:25:50 +08:00
Lantao Liu
59e80cdac3
Fix kubelet panic.
...
Signed-off-by: Lantao Liu <lantaol@google.com>
2018-11-16 16:21:57 -08:00
Frederic Branczyk
4724fca678
pkg/kubelet/stats: Add container log size metric
2018-11-12 22:04:50 +01: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
Jeff Grafton
23ceebac22
Run hack/update-bazel.sh
2018-06-22 16:22:57 -07:00
Lukas Grossar
64dee74bb7
Fix typo in volume_stats.go
...
volumeStatsCollecotr -> volumeStatsCollector
2018-05-04 15:49:07 +02:00
Jeff Grafton
ef56a8d6bb
Autogenerated: hack/update-bazel.sh
2018-02-16 13:43:01 -08:00