Change GetAllMetricComponents according to the metric data