Update README.md

This commit is contained in:
Shahzheeb Khan 2016-04-15 11:05:34 -04:00
parent d7c95566bf
commit 68556466ef
1 changed files with 1 additions and 1 deletions

View File

@ -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