pmm.yml is not designed to be editable by end use - options should be changed through pmm-admin runs.
Right now there is no option to change client name without loosing stored metrics as metrics belonging to the host are identified by its name. So you pretty much need to reinstall the client with new client name