Closed ivan-zinchenko closed 1 week ago
+1 I'm having the same issue here. Maybe it's dependant on MongoDB version? I'm using 5.0
same issue for me with MongoDB 6.0.7
Hi, all collectors are disabled by default, you need to enable them using --collector.*
flags or enable all of them using --collect-all
flag.
list of flags can be found https://github.com/percona/mongodb_exporter/blob/main/main.go#L52-L62.
Meanwhile we will work on improving documentation and default behavior in https://perconadev.atlassian.net/browse/PMM-13318.
thx @BupycHuk, --collect-all flag solved the issue for me
Describe the bug
Having local (compose stack) mongodb instance and exporter configured with no auth, db is accessible without credentials and diagnostic commands can be executed via mongo console. However no mongodb specific metrics are collected/exposed on /metrics endpoint.
To Reproduce compose yaml:
Expected behavior :9216/metrics should expose all collected "mongodb*" metrics but only "go*" metrics and "mongodb_up" are shown
Logs
Environment
Additional context Test with auth enabled (admin root user) with the same result - no mongodb metrics even though user has superuser permissions on the db.