MongoDB virtual memory usage
warning

Description High memory usage
Query for 2m
>>>
	
				
					(
				
			
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
				
			
				
					{type="virtual"}) BY (instance) / 
				
			
				
					
					
						sum
					
				
			
				
					(
				
			
				
					
				
			
				
					{type="mapped"}) BY (instance)) > 3
				
			
    
Query Explanation

The query computes, per MongoDB instance, the ratio of total virtual memory (mongodb_memory{type="virtual"}) to total mapped memory (mongodb_memory{type="mapped"}) and triggers the alert when this ratio is greater than 3 – i.e., the instance’s virtual memory is more than three times its mapped memory, signalling unusually high memory usage.

Get Alert
Download
Copy to Clipboard