SONAR-4395 The SQL request used to get hotspot on metric can be improved