-
Notifications
You must be signed in to change notification settings - Fork 428
The latest version of mongodb exporter 39.0 is not communicating with mongodb #733
Replies: 1 comment · 11 replies
-
Hi @Ajaykumarvk18, logs are truncated and that's why it's not clear what is the error message |
Beta Was this translation helpful? Give feedback.
All reactions
-
@ssk512 what do you mean? |
Beta Was this translation helpful? Give feedback.
All reactions
-
how to get all documents from the collection? below metrcis api response not able to see the documents
|
Beta Was this translation helpful? Give feedback.
All reactions
-
@BupycHuk , How can we query mongodb in grafana to get specific collection data? Please add if any examples |
Beta Was this translation helpful? Give feedback.
All reactions
-
We have some MongoDB grafana dashboards in our grafana dashboards repository https://github.com/percona/grafana-dashboards. |
Beta Was this translation helpful? Give feedback.
All reactions
-
@BupycHuk , after importing these json dashboard . I’m not getting option to select Prometheus instance. |
Beta Was this translation helpful? Give feedback.
-
We have configured the mongodb exporter as per below document,
https://www.digitalocean.com/community/tutorials/how-to-monitor-mongodb-with-grafana-and-prometheus-on-ubuntu-20-04
Commands used to start mongodb exporter:
1. /usr/local/bin/mongodb_exporter --mongodb.uri=mongodb://127.0.0.1:27017
2. sudo systemctl start mongodb_exporter.service
Getting below error:
Oct 18 16:13:35 db18 systemd[1]: Started Prometheus MongoDB Exporter.
Oct 18 16:13:35 db18 mongodb_exporter[21027]: level=info ts=2023-10-18T16:13:35.688Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
Oct 18 16:13:35 db18 mongodb_exporter[21027]: time="2023-10-18T16:13:35Z" level=error msg="Cannot connect to MongoDB: invalid dsn: error parsing uri: must ha
Oct 18 16:13:41 db18 mongodb_exporter[21027]: time="2023-10-18T16:13:41Z" level=error msg="Cannot connect to MongoDB: invalid dsn: error parsing uri: must ha
~
PFA mongodb-exporter metrics data, which is getting displayed,
exporter-metrics-data.txt
Beta Was this translation helpful? Give feedback.
All reactions