yshngg
a483701408
feat(pod): add new metric for pod unscheduled time tracking
...
The changes introduce a new metric generator `kube_pod_status_unscheduled_time` to record the Unix timestamp when pods transition to unscheduled status. This enhances monitoring capabilities for scheduling issues by capturing exact transition times during `PodScheduled` condition changes.
2025-07-01 16:06:28 +08:00
Carlos Moreno
05187b47e2
fix: report correct values in kube_pod_status_reason metric (added tests)
2025-04-01 18:32:26 -05:00
Rick Rackow
20f30233bd
fix(kube_pod_tolerations): test duplicate toleration
2024-11-21 17:49:07 +01:00
Manuel Rüger
9f15cc1c8c
pods: Expose empty labels
2024-10-31 17:40:10 +01:00
Tetiana Kravchenko
393430ed86
fix the description of the 'kube_pod_container_status_last_terminated_timestamp' metric
...
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
2024-03-04 11:40:34 +01:00
Tetiana Kravchenko
dbdb77c920
fix benchmark test; add missing kube_pod_container_status_last_terminated_timestamp in pod tests
...
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
2024-01-22 16:32:52 +01:00
Tetiana Kravchenko
51ccb665c4
feat: add kube_pod_container_status_last_terminated_timestamp metric
...
Signed-off-by: Tetiana Kravchenko <tetiana.kravchenko@elastic.co>
2023-12-28 15:04:49 +01:00
changhyuni
b948807ba3
modify labels key
...
modify label key
2023-12-15 09:18:06 +09:00
changhyuni
ed1a7f992c
pods: update init_cotainer_info metric
2023-12-14 22:51:38 +09:00
changhyuni
fc1831d8b2
pods: update init_cotainer_info metric
2023-11-18 23:45:52 +09:00
adinhodovic
e9c7e66748
fix: Rename kube_pod_scheduler_name to kube_pod_scheduler
2023-11-07 09:56:05 +01:00
adinhodovic
c5c6c9a3f8
feat: Add new metric kube_pod_scheduler_name
...
Signed-off-by: adinhodovic <hodovicadin@gmail.com>
2023-10-19 19:41:34 +02:00
Kubernetes Prow Robot
e8272ced47
Merge pull request #2145 from opeco17/feature/disable-labels-annotations-metrics-by-default
...
feat: disable labels and annotations metrics when metric-annotations-…
2023-08-22 06:34:54 -07:00
opeco17
6de105ebbe
feat: disable labels and annotations metrics when metric-annotations-allowlist and metric-labels-allowlist are not provided
2023-08-14 14:38:23 +00:00
opeco17
3e4d91c4ba
feat: implement kube_pod_status_initialized_time
2023-08-14 14:01:34 +00:00
Swarup Srinivasan
8a8b7b47fc
add new metric kube_pod_service_account
2023-06-13 11:19:01 -04:00
Ryan R. Olds
67ed488ba8
Fixing emitting of ready time metrics when condition is false
2023-01-31 13:29:26 -08:00
Ryan R. Olds
ad5a7acf45
Added a test for kube_pod_status_container_ready_time
2023-01-18 16:23:44 -08:00
Ryan R. Olds
59b1728783
Merge branch 'main' into rolds/pod_ready_time
2023-01-10 16:26:17 -08:00
Lan Liang
4d8c58ad00
Support pod_ready_time and pod_container_ready_time
...
Co-authored-by: Szymon Grzemski <sz.grzemski@gmail.com>
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2023-01-10 16:04:03 -08:00
frezes
c3004c6145
Change kube_pod_status_qos_class to experimental metric
...
Signed-off-by: frezes <zhangjunhao@kubesphere.io>
2023-01-03 14:25:39 +08:00
frezes
288718a71f
Add kube_pod_status_qos_class gauge to pod metrics
...
Signed-off-by: frezes <zhangjunhao@kubesphere.io>
2022-12-12 17:38:37 +08:00
Paweł Kubica
2c3ea01cb2
Replace "<none>" with empty string for "owner_kind", "owner_name" and "owner_is_controller" dimensions.
...
Returning empty string instead of "<none>" value for "owner_kind", "owner_name" and "owner_is_controller" dimensions when no metadata.ownerReferences exists in Kubernetes resoures.
2022-12-03 15:17:02 +01:00
Pranshu Srivastava
5d20fd3454
Recommend kube-scheduler alternatives
...
Recommend metrics exposed by the kube-scheduler, in case of the ones below:
* `kube_pod_container_resource_limits`
* `kube_pod_container_resource_requests`
Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
2022-11-03 23:46:20 +05:30
Catherine Fang
5995c1e2cf
Add all stable metrics
2022-10-14 08:25:39 -04:00
Shaun Sabo
eb3c14002c
fix test
2022-08-24 13:07:04 -07:00
Shaun Sabo
ffb6fe77e8
remove reason from exitcode
2022-08-24 12:55:27 -07:00
Shaun Sabo
085935314b
unit tests
2022-08-24 12:55:27 -07:00
Shaun Sabo
1851bfae76
fix unitests
2022-08-24 12:55:27 -07:00
Julian van den Berkmortel
a0980c87d1
Add metric for pod tolerations (Ref: #1744 )
2022-06-29 17:56:52 +02:00
Braxton Schafer
f6be9edd01
fix failing lint checks
2022-05-31 11:42:59 -05:00
Braxton Schafer
08ec940c28
Add kube_pod_ips gauge to pod metrics
...
Add experimental kube_pod_ips metric to show all IPs on a pod.
This is useful for dual-stack clusters where pods will have at least one
IPv4 and one IPv6 address. Current kube_pod_info metric only shows
the single IP exposed by .status.podIP.
Signed-off-by: Braxton Schafer <bschafer@cloudflare.com>
2022-05-31 11:42:56 -05:00
Michal Fojtik
43d374b1cb
internal/store: fix potential panic in pod store
2022-04-25 13:53:50 +02:00
Eric Hole
9a6fae5fc3
kube_pod_nodeselector -> kube_pod_nodeselectors
2022-02-07 11:02:39 -08:00
Eric Hole
b2bdf2bd09
Removes dead code from test
2022-02-07 09:40:52 -08:00
Eric Hole
6d1c11f148
Adds kube_pod_nodeselector metric
2022-02-04 15:01:02 -08:00
Kubernetes Prow Robot
03e84f55d6
Merge pull request #1551 from dgrisonnet/revert-init-containers-requests
...
Revert init containers resource metrics rework
2021-09-30 06:06:08 -07:00
Gabi Davar
5016cca2de
add image_spec to pod (init)container info
2021-09-21 18:26:50 +03:00
Ids van der Molen
69e13ccb74
Add NodeAffinity and Shutdown to podStatusReasons
2021-09-14 20:42:12 +02:00
Damien Grisonnet
cf3ff0ebff
internal/store: fix pod store unit tests
...
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-09-06 18:11:41 +02:00
Damien Grisonnet
1352c476c7
pod: sync container resource metrics improvement
...
Init container resource metrics diverged from the container ones
although they should be similar.
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-08-20 19:07:34 +02:00
Damien Grisonnet
3040c54b8b
pod: rm reworked init container resource metrics
...
These metrics are superseded by the Pod resource metrics initiative in
Kubernetes. In 2.0.0, we removed the reworked container resource
metrics, but omitted the init container ones although they are also
covered by the Kubernetes effort.
Signed-off-by: Damien Grisonnet <dgrisonn@redhat.com>
2021-08-20 18:47:34 +02:00
Sylvain Rabot
96d08df5d0
Merge remote-tracking branch 'origin/master' into annotations
2021-08-16 08:50:02 +02:00
Harjas
6324b16973
capture start time for containers in terminated state
2021-07-01 22:31:37 +05:30
Sylvain Rabot
1cd06cf4ab
Fix benchmark test
...
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-06-07 16:14:56 +02:00
Sylvain Rabot
65bc62af5c
Add kube_*_annotations metrics
...
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2021-04-29 16:04:16 +02:00
Mikulas (Mike) Dite
70d039b140
Add wildcard option to labels-metric-allow-list
2021-03-30 14:26:12 +01:00
Lili Cosic
81ca495c9e
Merge remote-tracking branch 'upstream/release-2.0' into bring-release-2.0
2021-03-05 15:14:49 +01:00
Lili Cosic
fa5e260535
internal/store/pod.go: Only create last_terminated containers series if pods are
...
terminated. This reduces the cardinality of this metric greatly, as it was
one of the highest cardinality metrics pre 2.0.
2021-02-24 16:59:53 +01:00
Lili Cosic
99838a5762
Adjust unit tests
2021-02-09 15:50:38 +01:00