21 Dec 2023
	
		
		08:47 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 - last edited on 
    
	
		
		
		22 Dec 2023
	
		
		07:32 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
 by 
				
		 MaciejNeumann
		
			MaciejNeumann
		
		
		
		
		
		
		
		
	
			
		
I want to monitor the average lock time a specific service is experiencing using a DQL query
Solved! Go to Solution.
03 Jan 2024 04:41 PM
It may be that the metric you are looking for might not be available in Grail as of yet you can allways check what we have available as built in metrics here
If you do find that the metric you are looking for is in that list then you can write some DQL like this to get the result you are looking for: timeseries Lock_Time=avg(<metric_name>)
Here is an example of querying avg CPU consumption:
timeseries cpu=avg(dt.host.cpu.usage)
