-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Upgrade Mongodb library in Beats to v5 #31185
Merged
sayden
merged 24 commits into
elastic:main
from
sayden:feature/mb/upgrade-mongodb-library
May 17, 2022
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
b2f9f7b
Collstats metricset plus module
sayden be29d0a
fix collstats metricset
sayden 244e399
Abstract connection calls at the module level
sayden 23bdadb
fix dbstats metricset
sayden 363137e
fix metrics metricset
sayden 10bea25
fix status metricset
sayden a83a544
fix status metricset
sayden 1a1ad28
mage fmt update
sayden 43f802a
Merge commit 'c35761dd05f3a58533bd177de783d802d6098b9f' into feature/…
sayden b1109bd
Merge with master and fix conflicts
sayden 798911a
Fix linting
sayden 7d7011d
fix linting in packetbeat
sayden fe6ff3d
tidy up modules
sayden 6f9820a
Update NOTICE.txt
sayden ac2f7da
Fix test
sayden 503b68f
Fix remaining tests
sayden f3c99a3
Merge commit '47777ec1dc26a1baff76b40cb97e98681283f5ff' into feature/…
sayden 56f2cbf
Add a message to potential disconnection errors
sayden 3ce25c1
Replace the logger library on the protos of Packetbeat for mongo
sayden 8059f71
Add changelog entry
sayden 339dfdc
Merge branch 'main' into feature/mb/upgrade-mongodb-library
sayden a72224a
Merge commit '5129d6ce91e37cc0df6c8c51ace7ccabb7db97db' into feature/…
sayden 62f4353
Fix conflicts
sayden ff0a1c0
Fix notice
sayden File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,38 @@ | ||
{ | ||
"@timestamp": "2017-10-12T08:05:34.853Z", | ||
"agent": { | ||
"hostname": "host.example.com", | ||
"name": "host.example.com" | ||
}, | ||
"event": { | ||
"dataset": "mongodb.dbstats", | ||
"duration": 115000, | ||
"module": "mongodb" | ||
}, | ||
"metricset": { | ||
"name": "dbstats" | ||
"name": "dbstats", | ||
"period": 10000 | ||
}, | ||
"mongodb": { | ||
"dbstats": { | ||
"avg_obj_size": { | ||
"bytes": 741 | ||
"bytes": 59 | ||
}, | ||
"collections": 2, | ||
"collections": 1, | ||
"data_size": { | ||
"bytes": 1482 | ||
"bytes": 59 | ||
}, | ||
"db": "local", | ||
"db": "admin", | ||
"file_size": {}, | ||
"index_size": { | ||
"bytes": 32768 | ||
"bytes": 20480 | ||
}, | ||
"indexes": 2, | ||
"indexes": 1, | ||
"ns_size_mb": {}, | ||
"num_extents": 0, | ||
"objects": 2, | ||
"objects": 1, | ||
"storage_size": { | ||
"bytes": 32768 | ||
"bytes": 20480 | ||
} | ||
} | ||
}, | ||
"service": { | ||
"address": "172.26.0.2:27017", | ||
"address": "172.28.0.2:27017", | ||
"type": "mongodb" | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for this name change? There appears to be disagreement in the code base about how this should be spelled; the docs spell it as a single word, but the mb package spells it as a camel-cased pair.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I'm afraid that it's out of the scope of the PR to reach a consensus 🙂 Personally I don't like the camelCased version and I think statistically you'll see it more often without camelCase like in the docs of most of the metricsets of most of the modules. https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-mongodb-collstats.html