mongodb_exporter icon indicating copy to clipboard operation
mongodb_exporter copied to clipboard

mongodb_exporter0.39 problem

Open haodongz opened this issue 1 year ago • 10 comments

  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

haodongz avatar Nov 22 '23 09:11 haodongz

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?

BupycHuk avatar Nov 23 '23 09:11 BupycHuk

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 avatar Nov 28 '23 02:11 haodongz

I only have these missing metrics right now! 1701331486277

haodongz avatar Nov 28 '23 09:11 haodongz

could you also add flag --collect-all?

BupycHuk avatar Nov 28 '23 10:11 BupycHuk

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

image

haodongz avatar Nov 28 '23 10:11 haodongz

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

allaboutstrategy avatar Dec 18 '23 01:12 allaboutstrategy

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

haodongz avatar Dec 28 '23 07:12 haodongz

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

igroene avatar May 30 '24 11:05 igroene

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.

haodongz avatar Jun 06 '24 01:06 haodongz

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

igroene avatar Jun 06 '24 10:06 igroene