Currently, authentication for the services monitored via pmm-agent normally requires the use of --username, --password, along with the optional --agent-password.
As a user, this forces either command-line specification of secrets, or a flags file can be used so that secrets are hidden from view. However, credentials for the monitored services may be managed separately from the configuration of pmm-agent and pmm-admin.
The --credentials-source option will allow the user to generate a file that, at least initially, will be read to parse JSON from the file. Execution of a file may be added later and for now would produce an error to avoid any confusion.
The JSON format is as follows:
Only the required items need to be added.