High CPU usage can indicate your MongoDB deployment is struggling with increased traffic. Set up system CPU alerts to proactively identify performance bottlenecks and take action, like scaling or optimizing queries.
Monitoring memory consumption is crucial to prevent performance issues and crashes. Set up system memory alerts for high memory usage to quickly address large datasets or inefficient queries.
Slow-running queries can impact database performance and user experience. Set up query targeting alerts to be notified when queries may be problematic so you can identify and optimize. The query targeting alert typically occurs when no index supports a query (or queries) or when an existing index only partially supports a query.
Review your application's queries and ensure they are efficient. Create appropriate indexes to speed up data retrieval and reduce the load on your database.
For less manual work, take advantage of Performance Advisor (available for M10 clusters and above) to monitor slow queries and get personalized suggestions regarding your indexes to improve query performance.