Package com.yammer.metrics.core

Examples of com.yammer.metrics.core.MetricName


     }
   }

  public void start(SenseiCore senseiCore) {
    recoveredIndexInBoboFacetDataCache = MetricFactory.newCounter(new MetricName(CompositeActivityManager.class, "recoveredIndexInBoboFacetDataCache"));
    facetMappingMismatch =  MetricFactory.newCounter(new MetricName(CompositeActivityManager.class,
                                                                    "facetMappingMismatch"));

    this.senseiCore = senseiCore;
    boboIndexTracker = new BoboIndexTracker();
    boboIndexTracker.setSenseiCore(senseiCore);
View Full Code Here


    private final Timer _totalSearchTimer;

    public SenseiCoreServiceMessageHandler(AbstractSenseiCoreService<REQUEST, RESULT> svc){
      _svc = svc;
      MetricName metricName = new MetricName(MetricsConstants.Domain,"timer","total-search-time","node");
      _totalSearchTimer = MetricFactory.newTimer(metricName, TimeUnit.MILLISECONDS, TimeUnit.SECONDS);
    }
View Full Code Here

        }
      }
  }

  private Meter registerMeter(String name, String eventType) {
    return MetricFactory.newMeter(new MetricName(MetricsConstants.Domain, "meter", name, "indexing-manager"),
                                  eventType,
                                  TimeUnit.SECONDS);
  }
View Full Code Here

                                  TimeUnit.SECONDS);
  }

  private Timer registerTimer(String name)
  {
    return MetricFactory.newTimer(new MetricName(MetricsConstants.Domain, "timer", name, "indexing-manager"),
                                  TimeUnit.MILLISECONDS,
                                  TimeUnit.SECONDS);
  }
View Full Code Here

    // TODO: requets is a mis-spell. Can we fix it?
    _searchCounter = registerMeter("search-count", "requets");
  }
 
  private Timer buildTimer(int partition) {
    MetricName partitionSearchMetricName = new MetricName(MetricsConstants.Domain,"timer","partition-time-"+partition,"partition");
    return MetricFactory.newTimer(partitionSearchMetricName,TimeUnit.MILLISECONDS,TimeUnit.SECONDS);
  }
View Full Code Here

    _dataConverter = dataConverter;
    if (_dataConverter == null){
      throw new IllegalArgumentException("kafka data converter is null");
    }
    _indexingErrorMeter = MetricFactory.newMeter(new MetricName(KafkaStreamDataProvider.class, "indexing-error"),
        "error-rate",
        TimeUnit.SECONDS);
    _indexingTimeoutMeter = MetricFactory.newMeter(new MetricName(KafkaStreamDataProvider.class, "indexing-timeout"),
        "timeout-rate",
        TimeUnit.SECONDS);
  }
View Full Code Here

                           ClusterClient clusterClient,
                           Serializer<SenseiRequest, SenseiResult> serializer,
                           long timeoutMillis, boolean allowPartialMerge) {
    super(networkClient, clusterClient, allowPartialMerge, serializer, timeoutMillis, null);

    MetricName scatterMetricName = new MetricName(SenseiBrokerProxy.class,"scatter-time");
    scatterTimer = MetricFactory.newTimer(scatterMetricName, TimeUnit.MILLISECONDS, TimeUnit.SECONDS);
    MetricName errorMetricName = new MetricName(SenseiBrokerProxy.class,"error-meter");
    ErrorMeter = MetricFactory.newMeter(errorMetricName, "errors",TimeUnit.SECONDS);
  }
View Full Code Here

    TimeUnit durationUnit = TimeUnit.MICROSECONDS;
    TimeUnit rateUnit = TimeUnit.MILLISECONDS;

    this.printPeriod = printPeriod;

    readTimer = Metrics.newTimer(new MetricName(name, "", "reads"),
        durationUnit, rateUnit);
    readSuccessRatio =
        new CounterRatioGauge(Metrics.newCounter(new MetricName(name, "", "successes")),
            Metrics.newCounter(new MetricName(name, "", "-reads")));
    parseTimer = Metrics.newTimer(new MetricName(name, "", "parses"),
        durationUnit, rateUnit);
  }
View Full Code Here

        for (int i = 0; i < 100; i++) {
            for (int j = 0; j < 50; j++) {
                timer.update(i, TimeUnit.MINUTES);
            }
        }
        Metrics.newGauge(new MetricName("test", "limits", "NegSmall"), new Gauge<Double>() {
            @Override
            public Double value() {
                return -1E-109;
            }
        });
        Metrics.newGauge(new MetricName("test", "limits", "PosSmall"), new Gauge<Double>() {
            @Override
            public Double value() {
                return 1E-109;
            }
        });
        Metrics.newGauge(new MetricName("test", "limits", "NegLarge"), new Gauge<Double>() {
            @Override
            public Double value() {
                return -CloudWatchReporter.LARGEST_SENDABLE * 10;
            }
        });
        Metrics.newGauge(new MetricName("test", "limits", "PosLarge"), new Gauge<Double>() {
            @Override
            public Double value() {
                return CloudWatchReporter.LARGEST_SENDABLE * 10;
            }
        });
View Full Code Here

        private final Counter meter;
        private long reported = 0;

        public DifferencingCounter(InetAddress address)
        {
            this.meter = Metrics.newCounter(new MetricName(GROUP_NAME, TYPE_NAME, "Hints_not_stored-" + address.toString()));
        }
View Full Code Here

TOP

Related Classes of com.yammer.metrics.core.MetricName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.