Skip to content

Fix/mongodb metrics supplier (6.3)#25445

Draft
graylog-internal-actions-access[bot] wants to merge 3 commits into6.3from
backport-6.3/fix/mongodb-metrics-supplier
Draft

Fix/mongodb metrics supplier (6.3)#25445
graylog-internal-actions-access[bot] wants to merge 3 commits into6.3from
backport-6.3/fix/mongodb-metrics-supplier

Conversation

@graylog-internal-actions-access
Copy link
Copy Markdown

Note: This is a backport of #25424 to 6.3.

This PR fixes the mongodb metrics supplier by injecting correctly initialized mongdb connection instead of the default non-initialized client.

TODO: this needs backports!

Motivation and Context

Fixes #25410

How Has This Been Tested?

Adapted unit test to use actual mongodb connection

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have requested a documentation update.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

* Revert datanode jvm.options

* Added changelog

* fix MongoDBMetricsSupplier, inject mongo connection, not client

* Added changelog

* better unit test

(cherry picked from commit a5a46d3)
@xd4rker xd4rker requested a review from todvora March 26, 2026 10:07
Copy link
Copy Markdown
Contributor

@todvora todvora left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants