Ir para o conteúdo
ou

Software livre Brasil

 Voltar a Blogosfera d...
Tela cheia Sugerir um artigo

Automatically monitoring of docker using Zabbix

27 de Abril de 2015, 0:49 , por PSL-BA Feeds - 0sem comentários ainda | Ninguém está seguindo este artigo ainda.
Visualizado 75 vezes

Docker is a perfect tool to quickly create many environments to new services. That creation process is so easy, in some cases this is done automatically by other tool or script.

static1.squarespace.com

Monitor to avoid surprises

Problems can happens and IT team should be ready to figure it out before causing unavailability.

Problem

How can a monitoring team follow this quickly creation process and keep all this new assets in monitoring system? We need to automatically monitor all containers.

Solution

I developed some scripts to list docker containers, add it in Zabbix using LLD feature and monitor these new hosts.

Unfortunately we need special access to monitor that information in docker, so I used sudo and root cron job.

Follow the items monitored by this solution:

  • CPU used percent
  • Memory used percent
  • Bytes received and sent per second
  • Packages received and sent
  • Packages received and sent, but dropped
  • Packages received and sent with erros

Do you wanna know the solution before test? Take a look at the video:

I tested tested in the follow environment:

  • python 2.7.9
  • docker 1.6
  • zabbix agent and server 2.4

If you test in a different one, please let me know.


Fonte: http://techfree.com.br/2015/04/automatically-monitoring-of-docker-using-zabbix/

0sem comentários ainda

Enviar um comentário

Os campos são obrigatórios.

Se você é um usuário registrado, pode se identificar e ser reconhecido automaticamente.