I have standalone and replicaset mongo deployments in ubuntu VMs running in docker containers with volumes. Instances are separated in each VMs.
For monitoring setup I am trying to follow these instructions: https://www.mongodb.com/docs/cloud-manager/tutorial/install-mongodb-agent-to-monitor/
Which is the preferred way? Install mms agent (above instruction) in the host/VM or in the Dockerfile?
Host is Ubuntu 20.04 LTS with docker running(mongo container).
Does anyone have some experience/idea on this?