mongodb_exporter icon indicating copy to clipboard operation
mongodb_exporter copied to clipboard

What is the metrics to find the db is down or not?

Open viggy28 opened this issue 7 years ago • 2 comments

I see a lot of metrics, but is there any metric which helps to find whether the db is down or not? Uptime doesn't do the job. (or am i missing something?) I thought if the connection goes to 0, then it potentially means the db is down. Is there a better way? Thanks.

viggy28 avatar Jan 18 '18 01:01 viggy28

Look into the serverStatus metrics and replset member health metrics

avishefi avatar Jan 18 '18 09:01 avishefi

@vr001, did you find a good metric to monitor db state? uptime and number of connections do seem like they'd do the trick -- what was the issue with them?

bryanlarsen avatar May 28 '18 16:05 bryanlarsen