-
Notifications
You must be signed in to change notification settings - Fork 428
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
mongodb_exporter 0.32.0 could not get response when mongodb instance is down #483
Comments
@sitoc Can you provide details about the issue? I see that our standard template for reporting an issue is left untouched. |
@ShashankSinha252 Rewrite the issue details please check it, looking forward to your answer, thanks a lot |
This is a valid bug. We are looking into it. |
For me the exporter crashes as soon as you try to access the metrics endpoint and no mongodb is running.
When i do a:
I get the following error in exporter logs:
0.31.0 works without problems. |
the panic probably fixed by: 9c743bc |
But should'nt that already be released in: https://github.com/percona/mongodb_exporter/releases/tag/v0.31.1 ? |
Hello, same issue here using helm chart bitnami/mongodb 12.1.19 with metrics enabled. |
I think I'm seeing a similar problem, if there is no primary node, the exporter panics - I would have thought it could still collect metrics from a secondary, enough to be able to detect mongo is unhleathy via metrics. I'm using helm chart v3.1.1 and the helm chart values.yaml looks like:
(there is actually a 3rd mongo instance in the replica set but I've temporarily disabled it and removed it from the rs to make testing a bit easier). If I stop mongod on mongo1, the exporter panics (I'm not sure why mongo2 doesn't become PRIMARY and what effect that would have) Before:
Stop the service on mongo1, I see the exporter panics:
I would have thought the exporter would still be able to collect metrics from mongo2:
|
@ShashankSinha252 are we planning this for 0.35 ? have we identified the fix? |
I'm seeing similar issue with |
Hey, any updates on this? |
fixed by #653 |
Describe the bug
Currently, I used the mongodb_exporter 0.32.0 version. mongodb_exporter could not get response when mongodb instance is down, I mean that at least the metric mongodb_up should be set 0 when mongodb crash, so that prometheus alertmanager can report a alarm.
To Reproduce
1.Startup a mongodb_exporter and mongodb instance, this time everything is good, can get every metrics.
2. I manually shutdown the mongodb instance by using 'db.shutdownServer()'
3. and then, the mongodb_exporter could not get response. Like this as below:
Environment
The text was updated successfully, but these errors were encountered: