8 comments

[ 3.7 ms ] story [ 29.5 ms ] thread
Any other solutions that do this stuff ?
It depends what you're after; there seem to be a few different ways to try and monitor containers. For example, DataDog's agent will monitor the docker socket in order to get realtime stats. cAdvisor is probably the most powerful one around and is what Kubernetes is using.
`docker stats` is built-in to docker since 1.5 and has an HTTP API.
Docker stats is not a solution since you can't configure it, it's a good effort but is not sufficient. Docker stats over hundredths of containers generates too much load, you can't configure anything. An external project is welcomed to fulfill this lack.
Step 1: Spend time implementing a monitoring solution.

Step 2: Realise what you actually need is security and availability monitoring, plus well tested automated resolution strategies for various classes of events.

Step 3: Go back to step 1, and include broader requirements. Simultaneously realise that your strategy for resolution (or indeed containerization) is not universally applicable, so you actually need to build an abstract system that enables the appropriate use of multiple architectures if you don't want the problem again in future. Scope creep!