HiveBrain v1.2.0
Get Started
← Back to all entries
patterndockerMinor

Docker swarm container monitoring

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
dockerswarmcontainermonitoring

Problem

I have been on a typical journey of:

  • deploying software on a machine



  • deploying software in a container



  • deploying software using docker swarm



The need for this journey is that swarm removes a large portion of micro-managing resources and machine allocation etc.

There is, however, a hurdle I am trying to overcome.

For point one and two, we have heavy monitoring of our software using a tool (Zabbix) which has given us great insights into any problems or metrics.

As we migrate to point three, how does one monitor an individual container?

To give a real-world illustration:

I have software that is "buggy", every now and then it dies. The health check would typically fail and a new container would start with no service interruption. My question is,

  • How am I aware that this has occurred in order to investigate a potential problem ?



  • One potential solution is to monitor the docker swarm event stream; is this the only solution?

Solution

The easiest way is not to handle this information)) You will get tired of such useless information like containers restarts.

Anyway, there is couple of tools to monitor docker with prometheus:

  • Google cadvisor



  • Docker experimental prometheus metrics



But it requires installation of prometheus, alert-manager, find metrics for triggering and set up alert rules.

Or maybe try to find zabbix tool for monitoring docker containers.

Context

StackExchange DevOps Q#9802, answer score: 1

Revisions (0)

No revisions yet.