@Override
  protected Set<String> getGangliaClusterNames(Resource resource, String clusterName) {
    String component = getComponentName(resource);
    
    return new HashSet<>(GANGLIA_CLUSTER_NAME_MAP.containsKey(component) ?
      GANGLIA_CLUSTER_NAME_MAP.get(component) :
      Collections.emptyList());
  }
Ganglia property provider implementation for component resources.
ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/ganglia/GangliaComponentPropertyProvider.java