Database observability is an especially nuanced topic, and MongoDB is no exception. Honeycomb supports several complementary strategies to give you maximum visibility into your MongoDB deployment.
To quickly track down database problems, it’s important to understand your query patterns along multiple dimensions:
Honeycomb’s TCP agent for MongoDB gives you query-level visibility without any impact on database performance. It passively analyzes traffic between your MongoDB clients and servers to help you quickly answer these questions and more.
Database logs provide additional insight into bad queries, by surfacing information about query plans, index use, locks held, etc. Our agent parses MongoDB logs and extracts useful information such as:
Some metrics that reflect the high-level health of a MongoDB instance can’t be captured on a per-operation basis. These include:
Honeycomb provides a helper to capture these statistics for you.
Once you’re collecting MongoDB data, make sure you’re the first to know when something goes wrong. Read more about defining triggers and alerts with Honeycomb.
Honeytail and our installers are all open source, Apache 2.0 licensed. Their source can be found on GitHub: