From 680456eed6371cf58853332377890e733265caaa Mon Sep 17 00:00:00 2001 From: cedric lamoriniere Date: Thu, 16 Jan 2020 13:47:11 +0100 Subject: [PATCH] update doc with new pod's metrics and fix benchmark Signed-off-by: cedric lamoriniere --- docs/pod-metrics.md | 4 +++- internal/store/pod_test.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/pod-metrics.md b/docs/pod-metrics.md index c315bca971..def077b360 100644 --- a/docs/pod-metrics.md +++ b/docs/pod-metrics.md @@ -25,7 +25,8 @@ | kube_pod_container_resource_limits_cpu_cores | Gauge | `container`=<container-name>
`pod`=<pod-name>
`namespace`=<pod-namespace>
`node`=< node-name> | DEPRECATED | | kube_pod_container_resource_limits | Gauge | `resource`=<resource-name>
`unit`=<resource-unit>
`container`=<container-name>
`pod`=<pod-name>
`namespace`=<pod-namespace>
`node`=< node-name> | STABLE | | kube_pod_container_resource_limits_memory_bytes | Gauge | `container`=<container-name>
`pod`=<pod-name>
`namespace`=<pod-namespace>
`node`=< node-name> | DEPRECATED | -| kube_pod_created | Gauge | `pod`=<pod-name>
`namespace`=<pod-namespace> | +| kube_pod_created | Gauge | `pod`=<pod-name>
`namespace`=<pod-namespace> | STABLE | +| kube_pod_deleted | Gauge | `pod`=<pod-name>
`namespace`=<pod-namespace> | EXPERIMENTAL | | kube_pod_restart_policy | Gauge | `pod`=<pod-name>
`namespace`=<pod-namespace>
`type`=<Always|Never|OnFailure> | STABLE | | kube_pod_init_container_info | Gauge | `container`=<container-name>
`pod`=<pod-name>
`namespace`=<pod-namespace>
`image`=<image-name>
`image_id`=<image-id>
`container_id`=<containerid> | STABLE | | kube_pod_init_container_status_waiting | Gauge | `container`=<container-name>
`pod`=<pod-name>
`namespace`=<pod-namespace> | STABLE | @@ -40,4 +41,5 @@ | kube_pod_spec_volumes_persistentvolumeclaims_info | Gauge | `pod`=<pod-name>
`namespace`=<pod-namespace>
`volume`=<volume-name>
`persistentvolumeclaim`=<persistentvolumeclaim-claimname> | STABLE | | kube_pod_spec_volumes_persistentvolumeclaims_readonly | Gauge | `pod`=<pod-name>
`namespace`=<pod-namespace>
`volume`=<volume-name>
`persistentvolumeclaim`=<persistentvolumeclaim-claimname> | STABLE | | kube_pod_status_scheduled_time | Gauge | `pod`=<pod-name>
`namespace`=<pod-namespace> | STABLE | +| kube_pod_status_reason | Gauge | `pod`=<pod-name>
`namespace`=<pod-namespace>
`reason`=<NodeLost\|Evicted\> | EXPERIMENTAL | | kube_pod_status_unschedulable | Gauge | `pod`=<pod-name>
`namespace`=<pod-namespace> | STABLE | diff --git a/internal/store/pod_test.go b/internal/store/pod_test.go index 00e09f3f86..fa853f1f3a 100644 --- a/internal/store/pod_test.go +++ b/internal/store/pod_test.go @@ -1650,7 +1650,7 @@ func BenchmarkPodStore(b *testing.B) { }, } - expectedFamilies := 39 + expectedFamilies := 41 for n := 0; n < b.N; n++ { families := f(pod) if len(families) != expectedFamilies {