You may have some issues with executing “pmm-admin config” on already monitored host.
It doesn’t allow to reconfigure monitoring with the same name. But if you set a new name then currently monitored instances will be dropped.
or you may use “–force” flag but it will lead to dropping your monitored instances too.
You may set new admin credential in the configuration file directly and restart pmm-agent.
e.g.