Reputation: 1585
I am new in prometheus.
I want to monitor all docker containers inside many servers. The case is like this:
My questions:
Upvotes: 0
Views: 4122
Reputation: 1585
There is very nice project which I found and now I can solved my problem.
I used dockprom which created by stefan you can visit this github link .
These are streps that I used:
I use one server as a master (I deploy dockprom project on this server).
There are two ways to monitor another server by using this project;
You can only deploy cadvisor and nodeexporter containers on another server then connect to prometheus master, but you need to add some configurations.
The second way which I used was more simple, I deploy dockprom to all servers then I added datasource on master server (I filled the data source IP with IP server which I want to monitor plus prometheus port).
Upvotes: 2
Reputation: 34112
Yes, Prometheus can monitor them. You'll need to let Prometheus know what's running where, either by hand in the config or by using service discovery such as Consul.
On the Grafana side if you've got Prometheus labels setup to distinguish the projects, then the Grafana templates feature will let you do that.
Upvotes: 2