How to measure containers start-up and end time from some API? How to measure containers start-up and end time from some API? kubernetes kubernetes

How to measure containers start-up and end time from some API?


The kube-state-metrics job exports various Kubernetes API relates stats for Prometheus, including in kube_pod_info the Pod start time:

https://github.com/kubernetes/kube-state-metrics/blob/master/Documentation/pod-metrics.md


Actually I was able to measure up the container start time using the heapster events for a pod.For each container, inside the pod heapster captures the events, from this I was able to at least get containerCreated and ContainerStart timestamp.