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

Mongo-exporter compatibility #744

Closed
arsbest opened this issue Nov 7, 2023 Discussed in #742 · 4 comments
Closed

Mongo-exporter compatibility #744

arsbest opened this issue Nov 7, 2023 Discussed in #742 · 4 comments

Comments

@arsbest
Copy link

arsbest commented Nov 7, 2023

Discussed in #742

Originally posted by arsbest November 3, 2023
Hi!
I would like to know which versions of mongo the mongo exporter is compatible with.
Possible compatibility issue or incorrect configuration?

I am currently using the following versions:

  • Mongo 4.0 instance
  • percona/mongodb_exporter:0.34.0

I connect from a user with write and read permissions.

Container launch options:

- args:                        
  - --web.listen-address=:9216 
  - --collect-all              
  - --no-mongodb.direct-connect
  - --log.level=error          
  - --compatible-mode          
  - --discovering-mode

The logs contain the following errors:

time="2023-11-03T10:35:01Z" level=error msg="cannot get $indexStats cursor for collection MY_COLLECTION: connection(MY_IP:8635[-96]) failed to write: context canceled"  

time="2023-11-03T10:35:01Z" level=error msg="Failed to get $dbstats for database MY_DB: connection(MY_IP:8635[-97]) failed to write: context canceled" 

time="2023-11-03T10:35:01Z" level=error msg="cannot get $indexStats cursor for collection MY_COLLECTION: (Unauthorized) not authorized on MY_DB to execute command {
 aggregate: \"system.profile\", pipeline: [ { $indexStats: {} } ], cursor: {}, lsid: { id: UUID(\"\") }, $clusterTime: { clusterTime: Timestamp(1699007701, 1636)
, signature: { hash: , keyId: 8 } }, $db: \"MY_DB\" }" 
```</div>
@BupycHuk
Copy link
Member

BupycHuk commented Nov 7, 2023

Hello, the minimum version supported is 4.4 now

@arsbest
Copy link
Author

arsbest commented Nov 7, 2023

Hello, the minimum version supported is 4.4 now

Thank you for your answer.
Where can I find a list of all dependencies?
Then how can I monitor Mongo 4.0?

@avishefi
Copy link

Hello, the minimum version supported is 4.4 now

@BupycHuk Why? The Go Mongo driver compatibility is stated for >= 3.6: https://www.mongodb.com/docs/drivers/go/current/compatibility/#compatibility-table-legend

https://github.com/percona/mongodb_exporter/blob/v0.40.0/go.mod#L17

@BupycHuk
Copy link
Member

@avishefi because it's EOL, it's not only about driver compatibility, but queries and etc. So we decided to not spend our time on trying to support versions that already EOLed.

@igroene igroene closed this as completed May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants