MongoDB monitoring is fast and easy to setup with OpsDash. You can quickly start monitoring your MongoDB instances using the zero-dependency single-binary OpsDash Smart agent. OpsDash provides a well-thought-out dashboard that displays metrics that are most relevant to the health and performance of the MongoDB instances being monitored. This means that you can start monitoring your MongoDB instance right away, since it takes just a couple minutes to setup OpsDash monitoring, No messing around with individual metrics, figuring out which of them are important, no editing graph templates.
Here’s how OpsDash’s curated dashboards come out of the box:
You can go from 0 to this in just a minute or two!
OpsDash dashboards are carefully designed to surface important metrics by default. Here are the graphs that are included in the dashboard:
If your setup requires that you monitor some additional metrics, that’s easy to. You can add and delete metrics and customize your MongoDB monitoring setup to meet any unique monitoring needs you may have.
Production MongoDBs are usually set up with multiple secondaries, which remain in constant sync with the primary. Secondaries may fail to do this for various reasons, like bad network, a crashed mongod process or a primary that is simply too fast for the secondary. These situations result in a “replication lag”.
During normal operations, the replication lag should be within a reasonable upper bound of time, depending on the size and scale of your MongoDB usage.
To monitor replication lag with OpsDash, simply see the “Replication Lag” graph of the primary MongoDB’s dashboard:
The graph has a line for each secondary, plotting the current replication lag between that and the primary, in seconds. Here you see that one of the secondaries (at 10.148.92.247) lagged for a while before the situation was corrected, while the other secondary (at 10.149.141.73) remained in sync all along.
You’ll want to set warning and critical upper limits for these metrics so that you can catch a runaway secondary before it is too late. You can quickly setup your alerts in OpsDash and send notifications by Slack, Hipchat, OpsGenie, PagerDuty or Email.
OpsDash is a comprehensive solution for server monitoring, service monitoring, database monitoring and application metrics monitoring. You can use OpsDash for monitoring MySQL, PostgreSQL, MongoDB, memcache, Redis, Apache, Nginx, Elasticsearch and more. It provides intelligent, customizable dashboards and spam-free alerting via email, HipChat, Slack, PagerDuty, OpsGenie and Webhooks. Send in your custom metrics with StatsD and Graphite interfaces built into each agent.