Issue with Cluster Monitoring: Changing Hostname from localhost to 19b7c27076e1

Hi everyone,

I’m currently trying to add my MongoDB cluster to Atlas Cloud Manager and enable monitoring. However, I keep encountering an issue where the hostname is automatically changed from localhost to 19b7c27076e1.

Because of this, when Atlas Cloud Manager attempts to access the cluster, it tries to connect to 19b7c27076e1:27017 instead of localhost:27017, which results in the following error: “Failure during discovery.”

I’m running MongoDB in a Docker container, and localhost:27017 is accessible from within the container. I suspect this might be related to how Docker assigns container IDs, but I’m not sure how to resolve it.

Has anyone else experienced this issue, and how can I ensure that Atlas Cloud Manager accesses the cluster via localhost instead of the container’s ID?

Any help would be greatly appreciated!