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

Addition of metric source - replSetGetConfig for getting voting member information #716

Open
jaison8940 opened this issue Sep 25, 2023 · 1 comment

Comments

@jaison8940
Copy link

Is your feature request related to a problem? Please describe.
There is no metric exposed currently to know whether a node is voting member or not.

E.g.
mongodb_config_members_votes 0 -> non voting member
mongodb_config_members_votes 1 -> voting member

Describe the solution you'd like
I would like to write a new collector for replSetGetConfig.

Describe alternatives you've considered
I could not find any alternatives.

@hiroshi
Copy link
Contributor

hiroshi commented Feb 7, 2024

Hi, I wrote a patch about adding replsetGetConfig metrics.

This is a forked version based on old version of mongodb_exporter (maybe around 0.20).

It had worked for me so far, but after our MongoDB is upgraded to 5.0, it keep missing $collStats.
(Maybe some compatibility issues between MongoDB versions and the old expoter versions).

I'm going to work around this issue.
However, once I gave up the patch to be merged to main and I am tired of catching up to new code base.

I may share some information when it goes well.

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

No branches or pull requests

2 participants