https://www.padok.fr/ https://www.padok.fr/en/blog https://www.padok.fr/en/blog/tag/technology https://www.padok.fr/en/blog/prometheus-monitoring-ansible Let’s say that you have a machine running Virtual Machines (VMs) that themselves are running Docker.

We want all our VMs and real machines monitored, with a simple dashboard to visualize the data.

However, I will talk about the pattern that we will use to monitor our infrastructure: the observer and the targets.

Add the IP of the targeted machine in the targets of the node-exporter job (and cadvisor if you also want to monitor the containers) of the observer machine (ansible/roles/observer/files/prometheus_main.yml).

Related Articles