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 ...

Get The DevOps 2.1 Toolkit: Docker Swarm now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.