-
Notifications
You must be signed in to change notification settings - Fork 428
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
Conversation
if !ok { | ||
return nil | ||
} | ||
func replSetMetrics(d bson.M, l *logrus.Entry) []prometheus.Metric { |
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.
🚫 [golangci-lint] reported by reviewdog 🐶
Function 'replSetMetrics' is too long (82 > 60) (funlen)
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.
LGTM with a minor comment
Co-authored-by: Alex Demidoff <[email protected]>
@@ -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 |
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.
🚫 [golangci-lint] reported by reviewdog 🐶
Magic number: 8, in detected (mnd)
PMM-13477 (optional, if ticket reported)
Below we provide a basic checklist of things that would make it a good PR:
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.