[PMM] Failed to register pmm-agent on PMM Server

I have installed PMM server on my Linux machine using docker container and it is running. To get metrics i’m now trying to install PMM client to monitor localhost MySQL instance. While configuring PMM client with the server i am getting the following exception

docker run
–name pmm-client
-e PMM_AGENT_CONFIG_FILE=pmm-agent.yml
–volumes-from pmm-client-data

Failed to register pmm-agent on PMM Server: Post "[https://x.x.x.x:443/v1/management/Node/Register](https://x.x.x.x/v1/management/Node/Register)": dial tcp x.x.x.x:443: connect: no route to host.

How can I solve this issue ?

Hello @aanees,
The error message indicates that from within the new container running the agent, it is unable to access your PMM server. Can you ping the server from this host? Next, try running a generic container and attempt to ping/telnet to the PMM server from within this container. Does that work? If not, you have networking issues that need to be resolved.

For a simpler setup, I recommend using the normal pmm client available via YUM/APT packages.

1 Like

Hi @matthewb, What I am doing is running PMM server on docker container. I am not running PMM agent in container and PMM agent package is installed on machine. I am able to telnet 443 port (export for PMM server). The only problem is when i try to register PMM agent with PMM server i always failed to register PMM agent on PMM server.

1 Like

Please show the commands you are running to register the agent with the server.

1 Like