<p>I am running a <strong>job</strong> with a kubernetes POD and I need to measure <strong>the time between the creation the job by the user and the time of starting running this job on the node</strong> .</p>

<p>I want to get it through some <strong>api</strong>.</p>

<p>Does anyone know how can I get it ?</p>

Gofrane Haj Ahmed
<p><strong>Monitoring Kubernetes ( number of pending pods/jobs)</strong> </p>

<p>Use the <code>kube-state-metrics</code> package for monitoring and a small Go program called <code>veneur-prometheus</code> to scrape the Prometheus metrics kube-state-metrics emits and publish them as statsd metrics to monitoring system.</p>

<p>For example, here’s a chart of the number of pending pods in the cluster over the last hour. Pending means that they’re waiting to be assigned a worker node to run on. You can see that the number spikes at 11am, because a lot of cron jobs run at the 0th minute of the hour in this case.</p>

<p><a href="https://i.stack.imgur.com/NnApM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NnApM.png" alt="Pending pods "></a></p>

<p>An example chart showing pending pods in a cluster over the last hour</p>
