protected void updateComponentMetricMap(
    Map<String, PropertyInfo> componentMetricMap, String propertyId) {

    String regexKey = null;
    Map.Entry<String, Pattern> regexEntry = getRegexEntry(propertyId);
    if (null != regexEntry) {
      regexKey = regexEntry.getKey();
    }

    if (!componentMetricMap.containsKey(propertyId) && regexKey != null
      && !regexKey.equals(propertyId)) {

      PropertyInfo propertyInfo = componentMetricMap.get(regexKey);
      if (propertyInfo != null) {
        List<String> regexGroups = getRegexGroups(regexKey, propertyId);
        String key = propertyInfo.getPropertyId();
        for (String regexGroup : regexGroups) {
          regexGroup = regexGroup.replace("/", ".");
          key = key.replaceFirst(FIND_REGEX_IN_METRIC_REGEX, regexGroup);
        }
        PropertyInfo compPropertyInfo = new PropertyInfo(key,
          propertyInfo.isTemporal(), propertyInfo.isPointInTime());
        compPropertyInfo.setAmsHostMetric(propertyInfo.isAmsHostMetric());
        compPropertyInfo.setAmsId(propertyInfo.getAmsId());
        compPropertyInfo.setUnit(propertyInfo.getUnit());
        componentMetricMap.put(propertyId, compPropertyInfo);
      }

    }
  }
Adds to the componentMetricMap a specific(not regexp)
metric for the propertyId

@param componentMetricMap
@param propertyId
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractPropertyProvider.java