How could I change pmm-client's server IP to another IP?

I configed pmm-client to push data to server A, now I want to let pmm-client push data to server B;How could I do?Just type this command?

pmm-admin config server_B

Hi. If I remember correctly it wouldn’t work.
You should use next commands:


pmm-admin rm --all # it stops and removes all monitoring
sed -ie '/client_name/d' /usr/local/percona/pmm-client/pmm.yml # it removes data about config
pmm-admin config server_B ... 

It works for me, when I rebuild pmm-server