Exploring Docker Swarm and container overview dashboard in Grafana
One of the things missing from the dashboard are host names. If you select the Hostnames
list, you'll notice that it is empty. The reason behind that lies in the node-exporter
service. Since it is running inside containers, it is oblivious of the name of the underlying host.
We already commented that IPs from the node-exporter
are not very valuable since they represent addresses of network endpoints. What we truly need are either "real" host IPs or host names. Since we cannot get the real IPs from Docker services, the alternative is to use host names instead. However, the official Node Exporter
container does not provide that so we'll need to resort to an alternative. We'll change our node-exporter
service with the image created by GitHub user bvis
. The project can be found in the bvis/docker-node-exporter
(https://github.com/bvis/docker-node-exporter) GitHub repository. Therefore, we'll remove the node-exporter
service and...