You can enable AppDynamics support for all instances of a MongoDB service by applying an ops file:
bosh deploy -d mongodb-service mongodb-service/mongodb-service.yml \
-o ops/mongodb-enable-appdynamics-support.yml -l config/iaas-config.yml -l config/mongodb.yml
When enabled, any user created in the MongoDB instance will have the required privileges as described here.
Any service binding (
cf bind-service) created before AppDynamics support was enabled will have to be re-created (execute
cf unbind-service followed by
cf bind-service). This is due to the fact the CloudFoundry currently does not support implementing logic that will automate this process.