mirror of
				https://github.com/grafana/grafana.git
				synced 2025-02-25 18:55:37 -06:00 
			
		
		
		
	CloudWatch: Use default alias if there is no alias for metrics (#16732)
Fixes #16605
This commit is contained in:
		
				
					committed by
					
						
						Marcus Efraimsson
					
				
			
			
				
	
			
			
			
						parent
						
							fca5ee4bea
						
					
				
				
					commit
					89a01a680c
				
			@@ -228,5 +228,9 @@ func formatAlias(query *CloudWatchQuery, stat string, dimensions map[string]stri
 | 
			
		||||
		return in
 | 
			
		||||
	})
 | 
			
		||||
 | 
			
		||||
	if string(result) == "" {
 | 
			
		||||
		return metricName + "_" + stat
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return string(result)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user