forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[receiver/mongodbreceiver] Add metric version checks to prevent parti…
…al errors (open-telemetry#13329) * add extents version check Mongo version 4.4+ no longer returns numExtents since it is part of the obsolete MMAPv1 storage engine. See https://www.mongodb.com/docs/manual/release-notes/4.4-compatibility/\#mmapv1-cleanup for more details * add version check for session count Mongodb 2.6 is receiving a partial error because the 'storageEngine', 'name' path does not exist. This is a wiredTiger storge engine metric and is only available in 3.0+. See https://www.mongodb.com/docs/v3.0/reference/command/serverStatus/\#serverStatus.wiredTiger.session * add cache operations version check Mongodb 2.6 is receiving a partial error because the 'storageEngine', 'name' path does not exist. This is a wiredTiger storage engine metric and is only available in 3.0+. See https://www.mongodb.com/docs/v4.0/reference/command/serverStatus/\#serverstatus.wiredTiger.cache * add version checek for connection counts 'active' attribute mongodb below 4.0 were getting partial errors because connection counts 'active' attribute is available 4.0+. See https://www.mongodb.com/docs/v4.0/reference/command/serverStatus/\#serverstatus.connections.active * add global lock time metric collector for 3.0 In the old version mongodb had a 4.0 check on global lock time metric. This check is not needed as mongodb supports this metric path on 2.6, 3.0, 4.0 and 5.0. Before 3.0 was not collecting the global status metric at all. 2.6 was using a less direct approach to collect when the metric can be gathered just like all other versions. This is supported by https://www.mongodb.com/docs/v2.6/reference/command/serverStatus/\#serverStatus.globalLock.totalTime and https://www.mongodb.com/docs/v3.0/reference/command/serverStatus/\#serverStatus.globalLock.totalTime * add changelog * fix readme
- Loading branch information
1 parent
5392aed
commit 350d653
Showing
5 changed files
with
202 additions
and
198 deletions.
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
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
Oops, something went wrong.