A docker server profiling configuration based on the docker or the pod ip address and it will print the latency in your terminal. I wrote this code after the after the Brian Hass post on the latency post and my code and comment also mentioned there post.
To not to kill the process to show the plot like did in the image, you can put a sleep command and that will automatically stop the system lag after the sleep and will produce the plot. Let me know if you find it difficult and i will put that one also.
Gaurav
Academic Staff Member
Bioinformatics
Institute for Biochemistry and Biology
University of Potsdam
Potsdam,Germany