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

[mongo] mongodb operation sampling with DBM #17596

Merged
merged 50 commits into from
May 29, 2024
Merged

Conversation

lu-zhengda
Copy link
Contributor

@lu-zhengda lu-zhengda commented May 20, 2024

What does this PR do?

This PR adds a new feature to support mongodb operation sampling when DBM is enabled. The change includes

  • Samples mongodb operations with $currentOp aggregation pipeline. Sampled operation includes all users and idle sessions
  • Collect operation explain plans for sampled operations
    This feature is gated by DBM and cannot be enabled without DBM.

Motivation

https://datadoghq.atlassian.net/browse/DBMON-3997

Additional Notes

Sampled Statements
image
Explain Plans
image

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Changelog entries must be created for modifications to shipped code
  • Add the qa/skip-qa label if the PR doesn't need to be tested during QA.
  • If you need to backport this PR to another branch, you can add the backport/<branch-name> label to the PR and it will automatically open a backport PR once this one is merged

Copy link

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

Copy link

The validations job has failed; please review the Files changed tab for possible suggestions to resolve.

ynnadkrap
ynnadkrap previously approved these changes May 22, 2024
@lu-zhengda lu-zhengda merged commit 4e05b0a into master May 29, 2024
35 checks passed
@lu-zhengda lu-zhengda deleted the zhengda.lu/mongo-sample branch May 29, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants