diff --git a/plugins/inputs/mongodb/README.md b/plugins/inputs/mongodb/README.md index 3e0e884f8..a1c0abd94 100644 --- a/plugins/inputs/mongodb/README.md +++ b/plugins/inputs/mongodb/README.md @@ -11,7 +11,7 @@ For authenticated mongodb istances use connection mongdb connection URI ```toml [[inputs.mongodb]] - servers = ["mongodb://myuser:mypassword@myinstance.telegraf.com:27601/mydatabasename?authMechanism=PLAIN&authSource=$external"] + servers = ["mongodb://username:password@10.XX.XX.XX:27101/mydatabase?authSource=admin"] ``` This connection uri may be different based on your environement and mongodb setup. If the user doesn't have the required privilege to execute serverStatus command the you will get this error on telegraf