Repository navigation
Support MongoDB 9 monitoring - #25517
lu-zhengda wants to merge 14 commits into
Conversation
|
Warning This PR changes Agent dependencies. Do not merge it until the wheels are promoted. Dependency inputs changed, so the dependency resolution and wheel build workflow runs on this branch. It takes 1.5 to 3 hours and finishes by committing updated lockfiles. The wheels it builds then have to be promoted before the Agent can use them. Steps to take, in order:
Merging before promotion leaves the Agent unable to install the wheels these lockfiles pin. Pushing again to this branch invalidates the promotion, so if you push after step 4 you have to promote again. Head commit |
|
|
evalya-impact-summaryevalya impact analysis |
de2892d to
bfcc646
Compare
✅ Dispatcher tests: passed
✅ 52 passed · nothing failed Batches · ✅ batch-01 52/52 Dispatcher finished on |
Disk usage changeCommit Uncompressed
Details
Compressed
Details
|
|
✅ All CI checks and tests passed. Datadog automation helped this PR pass. 🎉 All green!🧪 All tests passed 🔄 Datadog retried 1 test - 1 passed on retry 🎯 Code Coverage (details) 🔗 Commit SHA: 71f2a6a | Docs | View more details | Give us feedback! |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9244a4310a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
* Build PyMongo from source on Linux to strip extension debug info Co-authored-by: Cursor <cursoragent@cursor.com> * Remove unused PyMongo async client and GridFS from packaged wheels Co-authored-by: Cursor <cursoragent@cursor.com> * Bump hatchling in the wheel builder so pymongo can build from source Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
Validation ReportAll 22 validations passed. Show details
|



What does this PR do?
Adds MongoDB 9 support by handling the new
$queryStatsresponse format and collecting read/write query metrics, planning time, plan-cache usage, and peak memory. Also adds 22 server metrics for change streams, replication, query memory, and write-conflict retries.Upgrades PyMongo to 4.18.2, the driver version shared by MongoDB and Kafka Actions. This raises the integration's minimum supported MongoDB version to 4.4. Connection-string authentication and SRV support are preserved. Schema discovery now skips
system.profile.The 11 new DBM query metrics require the companion processor PR, which has been deployed to staging.
Motivation
MongoDB 9 changes the structure of
$queryStats, causing the existing collector to miss query metrics. This update restores collection and adds the new observability metrics.Validation covers MongoDB 4.4, 8.0, and 9.0, including authentication and TLS. Live staging tests confirmed metrics, query samples, slow queries, and explain plans in separate replica-set and sharded deployments. Tests and lint pass.
Review checklist (to be filled by reviewers)
qa/requiredif this PR needs QA validation, orqa/skip-qaif it does not. Exactly one of the two is required.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged