public Optional<UriInfo> getJmxSourceUri() {
    return !"jmx".equalsIgnoreCase(type) ? Optional.empty() : Optional.ofNullable(jmxSourceUri);
  }
Return flat metric map without category
ambari-server/src/main/java/org/apache/ambari/server/state/stack/MetricDefinition.java