Search code examples
dockerkubernetesprometheusheapster

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


I am running a kubernetes cluster with heapster and prometheus service. I want to measure each container and pods start and end time but i could not find such statistics in prometheus.

I want to get these statistics through some api.

Does anyone know how can I get it ?


Solution

  • 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.