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

Support collecting metrics for MongoDB sharded clusters #876

Open
sejongk opened this issue May 25, 2024 · 5 comments
Open

Support collecting metrics for MongoDB sharded clusters #876

sejongk opened this issue May 25, 2024 · 5 comments
Assignees
Labels
enhancement 🌟 New feature or request good first issue 🐤 Good for newcomers

Comments

@sejongk
Copy link
Contributor

sejongk commented May 25, 2024

What would you like to be added:
It seems necessary to collect metrics for MongoDB sharded clusters. Currently, the existing monitoring system focuses on Yorkie metrics and go process metrics, but extending this to include MongoDB sharded clusters would provide valuable insights into their performance and health.

Why is this needed:
It is helpful to prevent and resolve problems in MongoDB sharded clusters such as #872.
Consider to utilize open source exporters such as mongodb_exporter.
Refer to MongoDB performance metrics in the Datadog blog post.

@sejongk sejongk added enhancement 🌟 New feature or request good first issue 🐤 Good for newcomers labels May 25, 2024
@sejongk sejongk changed the title Support collecting and exporting metrics for MongoDB sharded clusters Support collecting metrics for MongoDB sharded clusters May 25, 2024
@sejongk
Copy link
Contributor Author

sejongk commented Jul 17, 2024

Currently, the yorkie-mongodb Helm chart depends on Bitnami's mongodb-sharded chart, which provides a metrics option for setting up a Prometheus exporter. I think we can consider leveraging this option.
Ref.: https://github.com/bitnami/charts/blob/main/bitnami/mongodb-sharded/values.yaml#L1765

@krapie
Copy link
Member

krapie commented Jul 18, 2024

It seems like the mongodb-exporter in our mongodb-sharded is not working due to misconfiguration of the username to connect to the mongodb shard node.

The error message shows like below:
Cannot connect to MongoDB: invalid dsn: error validating uri: username required if URI contains user info

@xet-a
Copy link
Member

xet-a commented Jul 22, 2024

I'm interested in this issue. Can I try it?

@sejongk
Copy link
Contributor Author

sejongk commented Jul 22, 2024

I'm interested in this issue. Can I try it?

@xet-a Sure. If you have any questions, feel free to ask.

@sejongk
Copy link
Contributor Author

sejongk commented Aug 3, 2024

@xet-a @krapie I guess the mongodb-exporter for ARM64 is supported now.
https://hub.docker.com/r/bitnami/mongodb-exporter/tags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🌟 New feature or request good first issue 🐤 Good for newcomers
Projects
Status: In progress
Status: Todo
Development

No branches or pull requests

3 participants