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

missing metrics on percona mongodb exporter v0.42.0 #954

Open
adikalf opened this issue Nov 10, 2024 · 4 comments
Open

missing metrics on percona mongodb exporter v0.42.0 #954

adikalf opened this issue Nov 10, 2024 · 4 comments

Comments

@adikalf
Copy link

adikalf commented Nov 10, 2024

Hi,
I'm using mongo replicaset configuration with Percona exporter version 0.42 with the following parameters:
--collect-all
--compatible-mode.

I'm looking for metrics that show the replica set priority of each replica set/primary server.
The goal is to create a visualization that shows each member and its priority.

With the old exporter version 0.11, I used the following metrics:
mongodb_mongod_replset_member_priority
mongodb_mongod_replset_member_votes
mongodb_mongod_replset_member_hidden

However, on the 0.42 exporter, I found the metric mongodb_rs_electionCandidateMetrics_priorityAtElection, which is available only on the primary.
Additionally, when comparing the number of metrics between the primary server and secondary server (using the same exporter version), the numbers differ:
Primary: 9173 metrics
Secondary: 9104 metrics

Please advise.

@adikalf
Copy link
Author

adikalf commented Nov 10, 2024

mongo version is 7

@gd911314
Copy link

Hello, my current situation is: I installed skywalking10, mysqld_exporter, redis_exporter, rabbitmq_exporter, etc. After the configuration, the dashboard of skywalking10 will display the monitoring data. However, after mongodb_exporter is installed, it is also configured, and the browser can be accessed normally, the address of curl browser on skywalking10 server is also working, and the configuration of skywalking10 rules is OK, but the dashboard does not display mongo information. The permission of mongo is also configured. The version of mongodb_exporter is mongodb_exporter-0.42.0.linux-amd64.tar.gz. I have tried the versions of mongo 4,5,6,7,8, but I do not know the reason.

Have you also encountered such a situation?

@BupycHuk
Copy link
Member

Hello @adikalf difference in metrics number is based on getDiagnosticData response, we generate metrics dynamically.
Regarding metrics I think #295 should address your request about that, at least partially.

@BupycHuk
Copy link
Member

@gd911314 Your topic is not related to main one, please create a separate discussion. I haven't used skywalking, so I can't help with that.

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

3 participants