Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mongodb multiple hosts connection issue #34624

Merged
merged 30 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3dbc304
Fix mongodb multiple hosts connection issue
ritalwar Feb 21, 2023
9a7e6de
Update docker image for mongodb
ritalwar Feb 22, 2023
cc34509
Update status_integration_test.go
ritalwar Feb 23, 2023
784212d
Update changelog
ritalwar Feb 23, 2023
7e26cbc
Merge branch 'main' into mongodb_multihost_32188
ritalwar Feb 23, 2023
533815a
Update doc
ritalwar Feb 23, 2023
dcf38f4
Merge branch 'mongodb_multihost_32188' of github.com:ritalwar/beats i…
ritalwar Feb 23, 2023
2d1cfbf
Update test cases and documentation
ritalwar Mar 10, 2023
7583fef
update doc
ritalwar Mar 10, 2023
95c2d95
Merge branch 'main' into mongodb_multihost_32188
ritalwar Mar 20, 2023
ff1802b
Update mongodb_test.go
ritalwar Apr 3, 2023
8446e2a
Merge branch 'main' into mongodb_multihost_32188
shmsr Apr 19, 2023
a18e20e
Merge branch 'mongodb_multihost_32188' of github.com:ritalwar/beats i…
ritalwar May 2, 2023
3848bd7
code refactoring
ritalwar May 14, 2023
13f218f
Merge branch 'elastic:main' into mongodb_multihost_32188
ritalwar May 14, 2023
6015e27
address review comments
ritalwar May 14, 2023
2d9b929
rebuild
ritalwar May 14, 2023
599f741
fixing test call
ritalwar May 14, 2023
d7bfb1c
Merge branch 'elastic:main' into mongodb_multihost_32188
ritalwar May 15, 2023
67aebdd
Merge branch 'elastic:main' into mongodb_multihost_32188
ritalwar May 16, 2023
e038e88
update docs
ritalwar May 22, 2023
e26cc4f
Merge branch 'mongodb_multihost_32188' of github.com:ritalwar/beats i…
ritalwar May 22, 2023
133b5dc
Merge branch 'elastic:main' into mongodb_multihost_32188
ritalwar May 22, 2023
8393bc2
address comments
ritalwar May 22, 2023
5779448
Merge branch 'mongodb_multihost_32188' of github.com:ritalwar/beats i…
ritalwar May 22, 2023
2ffb0a5
Merge branch 'elastic:main' into mongodb_multihost_32188
ritalwar May 22, 2023
a58e59d
Merge branch 'elastic:main' into mongodb_multihost_32188
ritalwar May 22, 2023
7e6c150
Merge branch 'elastic:main' into mongodb_multihost_32188
ritalwar May 23, 2023
beefe84
Merge branch 'elastic:main' into mongodb_multihost_32188
ritalwar May 23, 2023
82ff724
Merge branch 'elastic:main' into mongodb_multihost_32188
ritalwar May 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions metricbeat/docs/modules/mongodb.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ Some more supported URLs are:
hosts: ["mongodb://localhost:27017/?directConnection=true"]
----------------------------------------------------------------------

When the parameter directConnection=true is included in the connection URI,
all operations are executed on the host specified in the URI.
It's important to note that directConnection=true must be explicitly specified in the URI,
as it won't be added automatically unless specified.
ritalwar marked this conversation as resolved.
Show resolved Hide resolved

[source,yaml]
----------------------------------------------------------------------
- module: mongodb
Expand Down
5 changes: 5 additions & 0 deletions metricbeat/module/mongodb/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ Some more supported URLs are:
hosts: ["mongodb://localhost:27017/?directConnection=true"]
----------------------------------------------------------------------

When the parameter directConnection=true is included in the connection URI,
all operations are executed on the host specified in the URI.
It's important to note that directConnection=true must be explicitly specified in the URI,
as it won't be added automatically unless specified.
ritalwar marked this conversation as resolved.
Show resolved Hide resolved

[source,yaml]
----------------------------------------------------------------------
- module: mongodb
Expand Down