Skip to content

Commit

Permalink
fix (inputs/mongodb) readme: correct connection URI (influxdata#10075)
Browse files Browse the repository at this point in the history
  • Loading branch information
anti32 authored Nov 10, 2021
1 parent 279fc83 commit 62a05b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/inputs/mongodb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ All MongoDB server versions from 2.6 and higher are supported.
## For example:
## mongodb://user:auth_key@10.10.3.30:27017,
## mongodb://10.10.3.33:18832,
servers = ["mongodb://127.0.0.1:27017"]
servers = ["mongodb://127.0.0.1:27017?connect=direct"]

## When true, collect cluster status.
## Note that the query that counts jumbo chunks triggers a COLLSCAN, which
Expand Down
2 changes: 1 addition & 1 deletion plugins/inputs/mongodb/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var sampleConfig = `
## For example:
## mongodb://user:auth_key@10.10.3.30:27017,
## mongodb://10.10.3.33:18832,
servers = ["mongodb://127.0.0.1:27017"]
servers = ["mongodb://127.0.0.1:27017?connect=direct"]
## When true, collect cluster status
## Note that the query that counts jumbo chunks triggers a COLLSCAN, which
Expand Down

0 comments on commit 62a05b2

Please sign in to comment.