Im trying to get the post execution stats of a container when it is done running (cpu,mem,net).
I have been successful in using the stats end point stream. With this, I have a couple of questions.
Is there a service I can access with the Remote API that will give me the stats when a container has completed running? I try to access the /stat?stream=false and all the values are zeroed out. This would have seemed like a logic point for the information.
This leave me with the only choice of capturing the stream while its running. That leads me to a second question, is the last transaction in the stream the sum results or is each transaction a snapshot in time? Is this the only way to get the stats of a completed container (taking the last transaction in the stream)?
Thank you in advance!
Regards,
Marty