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

mongodb_exporter0.39 problem #748

Open
haodongz opened this issue Nov 22, 2023 · 10 comments
Open

mongodb_exporter0.39 problem #748

haodongz opened this issue Nov 22, 2023 · 10 comments

Comments

@haodongz
Copy link

  1. The plug-in uses mongodb_exporter0.39, and the mogod version is mongo:4.2
  2. grafana version 9.4.3, prometheus, version 2.42.0
    Problem Description:
  3. Use mongodb_exporter0.39 deployed with docker and specify mogo's IP and account password. Mongo and metrics can display indicators, but grafana and prometheus cannot query relevant statements and syntax. Is it a version mismatch? Which version of mongodb_exporter should be used to match mongo:4.2?
image image image
@BupycHuk
Copy link
Member

BupycHuk commented Nov 23, 2023

Hello, have you tested with an older mongodb_exporter? 4.2 is EOL and wasn't tested with the latest mongodb_exporter.
Which flags were used to run container? Have you enabled compatible mode?

@haodongz
Copy link
Author

Hello, have you tested with an older mongodb_exporter? 4.2 is EOL and wasn't tested with the latest mongodb_exporter. Which flags were used to run container? Have you enabled compatible mode?
This is how I run it
docker run -d -p 9216:9216 --name mongodb_exporter percona/mongodb_exporter:0.39.0 --mongodb.collstats-colls=routing.* --mongodb.uri="mongodb://xxx:[email protected]:27017" --compatible-mode

@haodongz
Copy link
Author

haodongz commented Nov 28, 2023

I only have these missing metrics right now!
1701331486277

@BupycHuk
Copy link
Member

could you also add flag --collect-all?

@haodongz
Copy link
Author

could you also add flag --collect-all?
After adding --collect-all, the plug-in's logs report an error

image

@allaboutstrategy
Copy link

command:
  - "--compatible-mode"
  - "--collect-all"
  
  these together fixed it for me,
  
  then I have a huge list but it works

@haodongz
Copy link
Author

command:
  - "--compatible-mode"
  - "--collect-all"
  
  these together fixed it for me,
  
  then I have a huge list but it works

Yes, I added the parameters --compatible-mode, --collect-all, but still got an error
image

@igroene
Copy link
Member

igroene commented May 30, 2024

double check the permissions of the user that the exporter is using to connect to mongo?

@igroene igroene closed this as not planned Won't fix, can't repro, duplicate, stale Jun 5, 2024
@haodongz
Copy link
Author

haodongz commented Jun 6, 2024

double check the permissions of the user that the exporter is using to connect to mongo?

As far as I know, the way containers run has nothing to do with permissions.

@igroene igroene reopened this Jun 6, 2024
@igroene
Copy link
Member

igroene commented Jun 6, 2024

I was referring to the missing metrics. This is usually due to bad perms for the exporter. Also did you test if 0.40 fixes your issue? I am reopening this one

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

4 participants