Icinga2 - monitoring docker eviroment

Hi,

I did resreach regarading monitoring docker enviroment. For now it seams that Prometheus/Node_exporter/Cadvisor is better solution. We can set up additional Prometheus and give Prometheus task to scrap information and then develop python script which Icinga2 will use to fetch info from Prometheus … or even we could leave out Prometheus and use only node exporter/cadvisor, then develop python plugin which icinga2 will use in polling process …

Icinga2 is our standard monitoring system and we need solution how to monitor environment where we have docker containers.

my question’s:

  • is there any more intelligent or more elegant solution for this request to use it beside with icinga2 (best practice)?
  • do you have exp how to monitor microservices with icinga2?

Thx,
Josip

Hi just to give you update regarding this topic, we have setup on test env Prometheus/Cadvisor and develop check docker plugin in python. Icinga2 is using that plugin to fetch info about some docker from Prometheus and Prometheus is scraping CAdvisor. Now we are able to monitor our docker swarm test enviroment :slight_smile: .

When it will be done I could update solution on github with python script.

Cheers!

2 Likes

This sounds like a very cool idea @fatslimjoe, is it shared on Github already?

Hi, in mean time we have decided to switch docker swarm with k8s so I didnt finish the python script. Even not sure if this script is any more in our test env :slight_smile: , I have used python library “response” and did simple get request on CAdvisor url where metrics data is exposed … and with parsing and regex magic I have took the data what we need … I think I have done code only for load and root FS … had in the plan to do for swap, uptime and memory stuff … but then we decided to go with k8s and didnt proceed with futher development

Hi @fatslimjoe , @pdolinic
I can recommend LinuxFabric for Docker monitoring.

This sounds very promising! Thx! Will noted that and next time we will for sure try this plugin before I start with our development