public static void promoteKpis(Entity target, Entity webMetricsSource) {
   target.addEnricher(
       SensorPropagatingEnricher.newInstanceListeningTo(
           webMetricsSource,
           DynamicWebAppCluster.REQUESTS_PER_SECOND_IN_WINDOW,
           HttpLatencyDetector.REQUEST_LATENCY_IN_SECONDS_IN_WINDOW,
           OpenGammaMonitoringAggregation.VIEW_PROCESSES_COUNT,
           OpenGammaMonitoringAggregation.OG_SERVER_COUNT));
 }
 void connectSensors() {
   SensorPropagatingEnricher.newInstanceListeningToAllSensorsBut(getCluster(), SERVICE_UP)
       .addToEntityAndEmitAll(this);
   SensorPropagatingEnricher.newInstanceListeningTo(getZookeeper(), SERVICE_UP)
       .addToEntityAndEmitAll(this);
 }