-
Notifications
You must be signed in to change notification settings - Fork 216
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
nil pointer panic when monitoring a mongodb with no username and password set #110
Comments
Check out https://github.com/percona/mongodb_exporter which is a fork of this repository and seems more active than this one. I'm curious if it would resolve this issue |
Hi @yeya24 , func (replStats *ReplStats) Export(ch chan<- prometheus.Metric) {
replStats.Apply.Export(ch)
replStats.Buffer.Export(ch)
replStats.Network.Export(ch)
if replStats.PreloadStats != nil {
replStats.PreloadStats.Export(ch)
}
// 3.0+ only
if replStats.Executor != nil {
replStats.Executor.Export(ch)
}
} In metrics.go |
See discussion in issue dcu#110 <dcu#110>. Signed-off-by: Steffen Prohaska <[email protected]>
Start mongodb in 192.168.2.254 centos 7 with no username and password set
Then I start the exporter binary in another centos in the same subnet
The error is
The text was updated successfully, but these errors were encountered: