congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
com.codahale.metrics
Code IndexAdd Tabnine to your IDE (free)

How to use com.codahale.metrics

Best Java code snippets using com.codahale.metrics (Showing top 20 results out of 6,246)

origin: apache/flink

@Override
public void report() {
  // we do not need to lock here, because the dropwizard registry is
  // internally a concurrent map
  @SuppressWarnings("rawtypes")
  final SortedMap<String, com.codahale.metrics.Gauge> gauges = registry.getGauges();
  final SortedMap<String, com.codahale.metrics.Counter> counters = registry.getCounters();
  final SortedMap<String, com.codahale.metrics.Histogram> histograms = registry.getHistograms();
  final SortedMap<String, com.codahale.metrics.Meter> meters = registry.getMeters();
  final SortedMap<String, com.codahale.metrics.Timer> timers = registry.getTimers();
  this.reporter.report(gauges, counters, histograms, meters, timers);
}
origin: apache/incubator-druid

@Override
public long getProcessed()
{
 return processed.getCount();
}
origin: apache/incubator-druid

@Override
public void incrementProcessedWithError()
{
 processedWithError.mark();
}
origin: apache/incubator-druid

public DropwizardRowIngestionMeters()
{
 this.metricRegistry = new MetricRegistry();
 this.processed = metricRegistry.meter(PROCESSED);
 this.processedWithError = metricRegistry.meter(PROCESSED_WITH_ERROR);
 this.unparseable = metricRegistry.meter(UNPARSEABLE);
 this.thrownAway = metricRegistry.meter(THROWN_AWAY);
}
origin: dropwizard/dropwizard

  @Override
  public void executeTask(Map<String, List<String>> params, String body, PrintWriter output) throws Exception {
    final Timer.Context context = timer.time();
    try {
      underlying.executeTask(params, body, output);
    } finally {
      context.stop();
    }
  }
}
origin: Alluxio/alluxio

/**
 * Creates a new {@link JmxSink} with a {@link Properties} and {@link MetricRegistry}.
 *
 * @param properties the properties
 * @param registry the metric registry to register
 */
public JmxSink(Properties properties, MetricRegistry registry) {
 mReporter = JmxReporter.forRegistry(registry).build();
}
origin: Graylog2/graylog2-server

  @Override
  protected Ratio getRatio() {
    return Ratio.of(sizeGauge.getValue(),
            sizeLimitGauge.getValue());
  }
});
origin: apache/flink

@Override
public void update(long value) {
  dropwizardHistogram.update(value);
}
origin: apache/storm

public Histogram registerHistogram(String name, Reservoir reservoir) {
  return registry.histogram(name, () -> new Histogram(reservoir));
}
origin: apache/flink

  @Override
  public long getMin() {
    return snapshot.getMin();
  }
}
origin: apache/flink

@Override
public double getStdDev() {
  return snapshot.getStdDev();
}
origin: apache/flink

@Override
public long getCount() {
  return dropwizardHistogram.getCount();
}
origin: apache/incubator-druid

@Override
public void incrementThrownAway()
{
 thrownAway.mark();
}
origin: apache/incubator-druid

@Override
public long getUnparseable()
{
 return unparseable.getCount();
}
origin: apache/incubator-druid

@Override
public void incrementProcessed()
{
 processed.mark();
}
origin: apache/incubator-druid

@Override
public long getThrownAway()
{
 return thrownAway.getCount();
}
origin: apache/incubator-druid

@Override
public void incrementUnparseable()
{
 unparseable.mark();
}
origin: apache/incubator-druid

@Override
public long getProcessedWithError()
{
 return processedWithError.getCount();
}
origin: apache/flink

@Override
public void markEvent(long n) {
  meter.mark(n);
}
origin: apache/flink

  @Override
  public long getCount() {
    return meter.getCount();
  }
}
com.codahale.metrics

Most used classes

  • MetricRegistry
    A registry of metric instances.
  • Timer
    A timer metric which aggregates timing durations and provides duration statistics, plus throughput s
  • Meter
    A meter metric which measures mean throughput and one-, five-, and fifteen-minute exponentially-weig
  • Counter
    An incrementing and decrementing counter metric.
  • Timer$Context
    A timing context.
  • Snapshot,
  • Gauge,
  • HealthCheck$Result,
  • HealthCheckRegistry,
  • JmxReporter,
  • JmxReporter$Builder,
  • Timed,
  • ConsoleReporter,
  • Graphite,
  • GraphiteReporter,
  • GraphiteReporter$Builder,
  • ConsoleReporter$Builder,
  • Slf4jReporter,
  • MemoryUsageGaugeSet
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now