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

Viewed 3084

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 ?

3 Answers

If you are looking to calculate the completion time using start and end time then you can use the prometheus metric kube_pod_completion_time.

Related