kube-state-metrics icon indicating copy to clipboard operation
kube-state-metrics copied to clipboard

container label missing in kube_pod_status_container_ready_time

Open bharathvenkatrajan opened this issue 2 years ago • 6 comments

What would you like to be added: kube_pod_status_container_ready_time should have the container label and be able to filter on a container level

https://github.com/kubernetes/kube-state-metrics/blob/main/docs/pod-metrics.md

Why is this needed: The metric kube_pod_status_container_ready_time is supposed to show the ready time for each container

Describe the solution you'd like Need to add the container label to the metric kube_pod_status_container_ready_time Adding a container label here? - https://github.com/kubernetes/kube-state-metrics/blob/main/internal/store/pod.go#L1339-L1364

bharathvenkatrajan avatar Apr 24 '23 01:04 bharathvenkatrajan

/triage accepted /assign @CatherineF-dev

dgrisonnet avatar Jun 29 '23 16:06 dgrisonnet

The metric name should be kube_pod_container_ready_time.

You can add this new metric @bharathvenkatrajan with container label.

Example PR is https://github.com/kubernetes/kube-state-metrics/pull/1932

CatherineF-dev avatar Jun 29 '23 17:06 CatherineF-dev

This issue has not been updated in over 1 year, and should be re-triaged.

You can:

  • Confirm that this issue is still relevant with /triage accepted (org members only)
  • Close this issue with /close

For more details on the triage process, see https://www.kubernetes.dev/docs/guide/issue-triage/

/remove-triage accepted

k8s-triage-robot avatar Jun 28 '24 17:06 k8s-triage-robot