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

PMM-13477 Support MongoDB 8.0 #943

Merged
merged 18 commits into from
Nov 5, 2024
Merged

PMM-13477 Support MongoDB 8.0 #943

merged 18 commits into from
Nov 5, 2024

Conversation

BupycHuk
Copy link
Member

@BupycHuk BupycHuk commented Nov 1, 2024

PMM-13477 (optional, if ticket reported)

  • Links to related pull requests (optional).

Below we provide a basic checklist of things that would make it a good PR:

  • Make sure to sign the CLA (Contributor License Agreement).
  • Make sure all tests pass.
  • Keep current with the target branch and fix conflicts if necessary.
  • Update jira ticket description if necessary.
  • Attach screenshots and/or console output to the jira ticket to confirm new behavior, if applicable.
  • Leave notes to the reviewers if you need to focus their attention on something specific.

Once all checks pass and the code is ready for review, please add pmm-review-exporters team as the reviewer. That would assign people from the review team automatically. Report any issues on our Forum.

@BupycHuk BupycHuk requested a review from a team as a code owner November 1, 2024 14:34
@BupycHuk BupycHuk requested review from ademidoff and JiriCtvrtka and removed request for a team November 1, 2024 14:34
if !ok {
return nil
}
func replSetMetrics(d bson.M, l *logrus.Entry) []prometheus.Metric {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci-lint] reported by reviewdog 🐶
Function 'replSetMetrics' is too long (82 > 60) (funlen)

Copy link
Member

@ademidoff ademidoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with a minor comment

exporter/diagnostic_data_collector.go Outdated Show resolved Hide resolved
@BupycHuk BupycHuk merged commit 1e917bf into main Nov 5, 2024
12 of 13 checks passed
@BupycHuk BupycHuk deleted the PMM-13477-support-mongodb-8 branch November 5, 2024 09:35
@@ -112,6 +116,21 @@ func (d *diagnosticDataCollector) collect(ch chan<- prometheus.Metric) {
logger.Debug("getDiagnosticData result")
debugResult(logger, m)

// MongoDB 8.0 splits the diagnostic data into multiple blocks, so we need to merge them
if d.buildInfo.VersionArray[0] >= 8 { //nolint:gomnd
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [golangci-lint] reported by reviewdog 🐶
Magic number: 8, in detected (mnd)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants