The Mongo Management Service requires that you configure the hostname of mongo instances that the agent is monitoring. At this time the MMS charm only supports monitoring a single host per agent, although this will change in the future.
You must choose a hostname for the machine you want the agent to monitor and set that in the mms console.
Because, in general, you cannot know a priori what host juju will
install the mongodb service on, the hostname you choose will not have
a mapping to a globally accessible IP address. Instead, the MMS charm
will add a line to /etc/hosts
with the hostname you configured and
the internal IP address discovered in the database-relationship-changed
hook.
Max Cantor [email protected]