Open leesk8012 opened 7 years ago
I can confirm this issue, although with other error-codes:
Sep 21 19:53:37 host-01 prometheus-mongodb-exporter[20493]: E0921 19:53:37.923800 20493 replset_status.go:232] Failed to get replSet status.
Sep 21 19:53:37 host-01 prometheus-mongodb-exporter[20493]: E0921 19:53:37.924208 20493 oplog_status.go:127] Failed to get local.oplog_rs collection stats.
the exportert is started with the groups.enabled
flag set to this value, explicitly excluding op_counters
and op_counters_repl
:
-groups.enabled="asserts,durability,background_flushing,connections,global_lock,index_counters,network,memory,locks,metrics"'
The mongodb instance in question is a singleton instance, without replication.
I have the same problem: Listening on :9001 (scheme=HTTP, secured=no, clientValidation=no) E1101 13:39:40.126140 75084 server_status.go:173] Failed to get server status. E1101 13:39:40.126418 75084 replset_status.go:232] Failed to get replSet status. E1101 13:39:40.126533 75084 oplog_status.go:127] Failed to get local.oplog_rs collection stats.
this is my cmd: ./mongodb_exporter-linux-amd64 -mongodb.uri "mongodb://user:pwd@10.17.145.177:24000/ssf_h5" -groups.enabled="op_counters,op_counters_repl,asserts,durability,background_flushing,connections,global_lock,index_counters,network,memory,locks,metrics"
I use other's program:https://github.com/percona/mongodb_exporter/releases run the same cmd ,and get this result: INFO[0000] ### Warning: the exporter is in beta/experimental state and field names are very source="mongodb_exporter.go:239" INFO[0000] ### likely to change in the future and features may change or get removed! source="mongodb_exporter.go:240" INFO[0000] ### See: https://github.com/percona/mongodb_exporter for updates source="mongodb_exporter.go:241" ERRO[0000] Failed to get server status: not authorized on admin to execute command { serverStatus: 1, recordStats: 0 } source="server_status.go:224" ERRO[0000] Failed to get replSet status: not authorized on admin to execute command { replSetGetStatus: 1 } source="replset_status.go:270" ERRO[0000] Failed to get oplog status: not authorized on local to execute command { find: "oplog.rs", sort: { $natural: -1 }, skip: 0, limit: 1, batchSize: 1, singleBatch: true } source="oplog_status.go:149" INFO[0000] Starting HTTP server on http://:9216/metrics ... source="mongodb_exporter.go:208"
i met the same problem,how do you solve this? E0505 18:49:15.893751 860 replset_status.go:270] Failed to get replSet status. E0505 18:49:15.893902 860 oplog_status.go:127] Failed to get local.oplog_rs collection stats. E0505 18:49:30.893287 860 replset_status.go:270] Failed to get replSet status. E0505 18:49:30.893438 860 oplog_status.go:127] Failed to get local.oplog_rs collection stats.
Did anyone get passed this, I thought I did yesterday, but the same error?
Looks like the author has not implemented collecting replSet data yet. If you want to turn the error message off, you can add -mongodb.collect.replset=false and -mongodb.collect.oplog=false
Hi, I met the same problem conecting from mongo_exporter container to mongodb container in docker-compose file and want to know if someone solve it. mongo_1 | 2020-02-13T16:05:52.659+0000 I NETWORK [listener] connection accepted from 192.168.208.4:37474 #7 (4 connections now open) mongodb-exporter_1 | E0213 16:05:52.660839 1 server_status.go:203] Failed to get server status. mongodb-exporter_1 | E0213 16:05:52.661418 1 replset_status.go:270] Failed to get replSet status. mongodb-exporter_1 | E0213 16:05:52.661888 1 replset_conf.go:140] Failed to get replSet config. mongodb-exporter_1 | E0213 16:05:52.662483 1 oplog_status.go:127] Failed to get local.oplog_rs collection stats.
Hi, I found some error to tell you. I can connect "http://127.0.0.1:9001/metrics". and I can see the metrics about mongodb. But some errors occured. My mongo DB version is 3.4.7 Here is error message.
E0828 10:38:49.825895 21966 replset_status.go:232] Failed to get replSet status. E0828 10:38:49.826988 21966 oplog_status.go:127] Failed to get local.oplog_rs collection stats. E0828 10:48:17.029035 21966 replset_status.go:232] Failed to get replSet status. E0828 10:48:17.029788 21966 oplog_status.go:127] Failed to get local.oplog_rs collection stats.