Dial tcp 127.0.0.1:7777: connect: connection refused

Looks like the pmm-agent runs on 7777. Is the agent running? (probably not since there’s nothing on 7777) Did you start the agent and register this client with the server?