When logging into the swarmpit manager, the gauges that should be displaying the Disk, Memory and Processor usage might not display at all, and the charts might also appear completely empty. The issue is stems from the swarmpit agents unable to connect back to the swarmpit manager.
In order to resolve this issue, edit the swarmpit agent compose file and set the environment variables HEALTH_CHECK_ENDPOINT
and EVENT_ENDPOINT
to point to the exposed swarmpit manager port.
For example, if the swarmpit manager exposes a port, in this example 61616
:
version: '3.8' services: swarmpit: image: swarmpit/swarmpit:latest ports: - 61616:8080
then the corresponding swarmpit agent compose file should refer to the 61616
port and the FQDN that the swarmpit manager is running on:
version: '3.8' services: swarmpit-agent: image: swarmpit/agent:latest environment: - DOCKER_API_VERSION=1.35 - HEALTH_CHECK_ENDPOINT=http://manager.tld:61616/version - EVENT_ENDPOINT=http://manager.tld:61616/events
where:
manager.tld
is the hostname and suffix of the docker manager and,61616
is the portFor the contact, copyright, license, warranty and privacy terms for the usage of this website please see the contact, license, privacy, copyright.