Using multiple PMM servers with one client

Is there a way to use one client with several PMM servers, e.g. one on local network and other somewhere in the cloud?

You can expose prometheus port (default 9090), and start another PMM Server (or Grafana) to add data source from other PMM server

But I want another use case: one pmm-client for several PMM servers.

Not sure if it helps, but it can be achieved with 2 pmm-agents running on the same node with different listen port. The first pmm-agent sends metrics to one PMM server, the second one to another.

FAQ - Percona Monitoring and Management

So basically if you already have one pmm-agent running it would require setting up a second pmm-agent on the node:

pmm-agent setup ... --listen-port=7778 --config-file=<second config file> ...

pmm-admin --pmm-agent-listen-port=7778 add ....

pmm-admin --pmm-agent-listen-port=7778 status

The second agent needs its own config file, its own systemd unit, and a non-overlapping exporter port range (–ports-min / --ports-max, default 42000-42010). It also doubles the exporter load on the DB.