Can you confirm that your MongoD service can accept traffic from remote servers? By default, it only accepts connections on 127.0.0.1. See https://www.mongodb.com/docs/manual/core/security-mongodb-configuration/
Do you see any error messages in either server.log
(Graylog) or datanode.log
(Graylog Datanode)? For default log path see Default File Locations