stefanprodan / swarmprom

Docker Swarm instrumentation with Prometheus, Grafana, cAdvisor, Node Exporter and Alert Manager
MIT License
1.87k stars 733 forks source link

Twice the number of nodes on "Docker Engine Info" table #117

Closed baskinsy closed 4 years ago

baskinsy commented 4 years ago

Hello,

Maybe I'm missing something but I have seen this on multiple installs. In the example I have a 6 node (3 managers + 3 workers) swarm cluster and although grafana reports correctly 6 nodes, in Docker Engine Info table there are 12 (see attached image). The same happens on Cluster members table. Executing docker node ls reports 6 matching IDs with the table. I suspect that this may have to do with a leader swarm node re-election after restarting docker daemon on the leader node but it is just a guess.

Any hints or any idea how to look further?

Cheers

image

baskinsy commented 4 years ago

I made my own grafana image based on v5.4.5 and the issue was resolved, don't know if it was a coincidence but I'm closing this. In any case grafana v5.4.5 seems that works ok so you can update it.