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 Replica Set Metrics #827

Open
eroji opened this issue Mar 22, 2024 · 2 comments
Open

Missing Replica Set Metrics #827

eroji opened this issue Mar 22, 2024 · 2 comments

Comments

@eroji
Copy link

eroji commented Mar 22, 2024

Describe the bug
I currently have mongodb_exporter 0.40.0 installed with it connected against a replica set cluster. However, I don't see any metrics at all for replica set in the metrics endpoint. What am I missing?

To Reproduce
Steps to reproduce the behavior:

  1. Install mongodb_exporter 0.40.0 with the following params for execution
MONGODB_URI=mongodb://127.0.0.1:27017/admin
MONGODB_USER=<user>
MONGODB_PASSWORD=<password>
OPTIONS="--collect-all --discovering-mode --compatible-mode"
  1. Install MongoDB 7.0 and create the exporter user
  2. Configure replica set
  3. Navigate to /metrics endpoint for mongodb_exporter

Expected behavior
There should be metrics available for replica set

Logs
Please provide logs relevant to the issue

Environment

  • OS: AlmaLinux 9.2
  • environment (docker, k8s, etc): VM
  • MongoDB version: 7.0.7

Additional context
Add any other context about the problem here.

@du-do
Copy link

du-do commented May 16, 2024

i get the same issue.

/metrics get this metric :

`
#HELP mongodb_up Whether MongoDB is up.
#TYPE mongodb_up gauge

mongodb_up 0
`

@igroene
Copy link
Member

igroene commented May 30, 2024

can you double check the exporter user has enough perms?

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