Posted on Fri May 18 10:17:00 GMT 2018
Monolith structure is something that a modern project would rather like to avoid. Instead, the microservice approach is getting more and more popular nowadays. Due to those facts, solutions like Docker or Kubernates are widely used.
Having few docker containers running on your server, one would like to know how each of those containers behaves, how much resource(CPU/MEM) it consumes, what the NET usage is and so on and so forth... One of Cula Users mailed us asking for a script to monitor docker containers. So we prepared one and thought it was worth sharing.
Linux being the main environment for the Docker made us choose BASH as a scripting language. We have also used JQ library for the convinience. Statistics are parsed from
docker stats command and then processed like that:
If you are interested in this kind of solution you can download an example script and adjust it to match your needs. (Remember to put your SERVER's ID and SECRET KEY and change the container name/container id variable)
Be in the swim with your docker containers!. Start a free account here