I need to get the time taken by a pod to boot up from Pod Scheduled to Pod running status using Prometheus metrics.
I understand these information are avaiable in kubectl pod commands, but need to get as part of promql query.
I need to get the time taken by a pod to boot up from Pod Scheduled to Pod running status using Prometheus metrics.
I understand these information are avaiable in kubectl pod commands, but need to get as part of promql query.
Copyright © 2021 Jogjafile Inc.
You can take a look at the pod metrics from kube-state-metrics. There is a ton of valuable information there.
For this specific case, I think that
kube_pod_container_state_startedandkube_pod_status_scheduled_timecould be of interest to you:The difference between these metrics should provide the amount of time that a pod was scheduled but not yet running.