private static Map<String, Map<String, PropertyInfo>> normalizeMetricNames(Map<String, Map<String, PropertyInfo>> gids) {

    Map<String, Map<String, PropertyInfo>> returnMap = new HashMap<>();

    for (Map.Entry<String, Map<String, PropertyInfo>> gComponentEntry : gids.entrySet()) {

      String gComponent = gComponentEntry.getKey();
      Map<String, PropertyInfo> newMap = new HashMap<>();

      Set<Map.Entry<String, PropertyInfo>> gComponentEntries = gComponentEntry.getValue().entrySet();

      for (Map.Entry<String, PropertyInfo> gMetricEntry : gComponentEntries) {

        String gMetric = gMetricEntry.getKey();
        PropertyInfo propertyInfo = gMetricEntry.getValue();

        newMap.put(gMetric.replaceAll("\\$\\d+(\\.\\S+\\(\\S+\\))*", "*"), propertyInfo);
      }
      returnMap.put(gComponent, newMap);
    }
    return returnMap;
  }
Test to make sure that no JMX metrics are marked as point in time.
ambari-server/src/test/java/org/apache/ambari/server/controller/utilities/PropertyHelperTest.java