<p>How to get resources (CPU and Memory) consumed by a kubernetes job <strong>at the end of job's lifecycle</strong>? Is this out of kubernetes job implementation's scope?</p>

<p>Notes:</p>

<ul>
<li><code>kubectl describe job</code> provides only the limit/request specified.</li>
<li>I am aware of external tools to capture the resource consumption. I'm looking for something that could be stored along with job metadata without using any external monitoring tools like prometheus.</li>
</ul>

dolftax
<p>I would not encourage you to only restrict yourself to <code>kubectl top pod</code>. This is only good for quick troubleshoot and sneak peek only.</p>

<p>In production, you must have a more concrete framework for resource usage monitoring and I have found  Prometheus very useful. Of course, when you are working on GCP, you may choose native monitoring toolsets also.</p>
