Update README.md
This commit is contained in:
parent
49c9e77222
commit
d7c95566bf
|
@ -13,7 +13,7 @@ For authenticated mongodb istances use connection mongdb connection URI
|
||||||
[[inputs.mongodb]]
|
[[inputs.mongodb]]
|
||||||
servers = ["mongodb://myuser:mypassword@myinstance.telegraf.com:27601/mydatabasename?authMechanism=PLAIN&authSource=$external"]
|
servers = ["mongodb://myuser:mypassword@myinstance.telegraf.com:27601/mydatabasename?authMechanism=PLAIN&authSource=$external"]
|
||||||
```
|
```
|
||||||
This connection uri may be different based on your environement and mongodb setup. If the user doesn't have the required priviliges to execute serverStatus command the you will get this error on telegraf
|
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
|
||||||
|
|
||||||
```toml
|
```toml
|
||||||
Error in input [mongodb]: not authorized on admin to execute command { serverStatus: 1, recordStats: 0 }
|
Error in input [mongodb]: not authorized on admin to execute command { serverStatus: 1, recordStats: 0 }
|
||||||
|
|
Loading…
Reference in New Issue