Package | Description |
---|---|
com.yammer.metrics | |
com.yammer.metrics.core | |
com.yammer.metrics.jdbi.strategies | |
com.yammer.metrics.reporting |
Modifier and Type | Method and Description |
---|---|
static Counter |
Metrics.newCounter(MetricName metricName)
Creates a new
Counter and registers it under the given metric
name. |
static <T> Gauge<T> |
Metrics.newGauge(MetricName metricName,
Gauge<T> metric)
Given a new
Gauge , registers it under the given metric name. |
static Histogram |
Metrics.newHistogram(MetricName metricName)
Creates a new non-biased
Histogram and registers it under the
given metric name. |
static Histogram |
Metrics.newHistogram(MetricName metricName,
boolean biased)
Creates a new
Histogram and registers it under the given
metric name. |
static Meter |
Metrics.newMeter(MetricName metricName,
String eventType,
TimeUnit unit)
Creates a new
Meter and registers it under the given metric
name. |
static Timer |
Metrics.newTimer(MetricName metricName,
TimeUnit durationUnit,
TimeUnit rateUnit)
Creates a new
Timer and registers it under the given metric
name. |
Modifier and Type | Method and Description |
---|---|
protected MetricName |
MetricsRegistry.createName(Class<?> klass,
String name,
String scope)
Override to customize how
MetricName s are created. |
Modifier and Type | Method and Description |
---|---|
Map<MetricName,Metric> |
MetricsRegistry.allMetrics()
Returns an unmodifiable map of all metrics and their names.
|
SortedMap<String,SortedMap<MetricName,Metric>> |
MetricsRegistry.groupedMetrics()
Returns a grouped and sorted map of all registered metrics.
|
SortedMap<String,SortedMap<MetricName,Metric>> |
MetricsRegistry.groupedMetrics(MetricPredicate predicate)
Returns a grouped and sorted map of all registered metrics which match then given
MetricPredicate . |
protected ConcurrentMap<MetricName,Metric> |
MetricsRegistry.newMetricsMap()
Returns a new
ConcurrentMap implementation. |
Modifier and Type | Method and Description |
---|---|
int |
MetricName.compareTo(MetricName o) |
protected <T extends Metric> |
MetricsRegistry.getOrAdd(MetricName name,
T metric)
Gets any existing metric with the given name or, if none exists, adds the given metric.
|
boolean |
MetricPredicate.matches(MetricName name,
Metric metric)
Returns
true if the metric matches the predicate. |
Counter |
MetricsRegistry.newCounter(MetricName metricName)
Creates a new
Counter and registers it under the given metric name. |
<T> Gauge<T> |
MetricsRegistry.newGauge(MetricName metricName,
Gauge<T> metric)
Given a new
Gauge , registers it under the given metric name. |
Histogram |
MetricsRegistry.newHistogram(MetricName metricName,
boolean biased)
Creates a new
Histogram and registers it under the given metric name. |
Meter |
MetricsRegistry.newMeter(MetricName metricName,
String eventType,
TimeUnit unit)
Creates a new
Meter and registers it under the given metric name. |
Timer |
MetricsRegistry.newTimer(MetricName metricName,
TimeUnit durationUnit,
TimeUnit rateUnit)
Creates a new
Timer and registers it under the given metric name. |
void |
MetricsRegistryListener.onMetricAdded(MetricName name,
Metric metric)
Called when a metric has been added to the
MetricsRegistry . |
void |
MetricsRegistryListener.onMetricRemoved(MetricName name)
Called when a metric has been removed from the
MetricsRegistry . |
void |
MetricProcessor.processCounter(MetricName name,
Counter counter,
T context)
Process the given counter.
|
void |
MetricProcessor.processGauge(MetricName name,
Gauge<?> gauge,
T context)
Process the given gauge.
|
void |
MetricProcessor.processHistogram(MetricName name,
Histogram histogram,
T context)
Process the given histogram.
|
void |
MetricProcessor.processMeter(MetricName name,
Metered meter,
T context)
Process the given
Metered instance. |
void |
MetricProcessor.processTimer(MetricName name,
Timer timer,
T context)
Process the given timer.
|
<T> void |
Timer.processWith(MetricProcessor<T> processor,
MetricName name,
T context) |
<T> void |
Metric.processWith(MetricProcessor<T> processor,
MetricName name,
T context)
Allow the given
MetricProcessor to process this as a metric. |
<T> void |
Meter.processWith(MetricProcessor<T> processor,
MetricName name,
T context) |
<T> void |
Histogram.processWith(MetricProcessor<T> processor,
MetricName name,
T context) |
<T> void |
Counter.processWith(MetricProcessor<T> processor,
MetricName name,
T context) |
<U> void |
Gauge.processWith(MetricProcessor<U> processor,
MetricName name,
U context) |
void |
MetricsRegistry.removeMetric(MetricName name)
Removes the metric with the given name.
|
Modifier and Type | Method and Description |
---|---|
static MetricName |
StatementName.getJmxSafeName(String groupName,
String typeName,
String statementName) |
MetricName |
StatementNameStrategy.getStatementName(org.skife.jdbi.v2.StatementContext statementContext) |
MetricName |
DelegatingStatementNameStrategy.getStatementName(org.skife.jdbi.v2.StatementContext statementContext) |
Modifier and Type | Method and Description |
---|---|
protected PrintStream |
CsvReporter.createStreamForMetric(MetricName metricName)
Returns an opened
PrintStream for the given MetricName which outputs data
to a metric-specific .csv file in the output directory. |
void |
JmxReporter.onMetricAdded(MetricName name,
Metric metric) |
void |
JmxReporter.onMetricRemoved(MetricName name) |
void |
CsvReporter.processCounter(MetricName name,
Counter counter,
CsvReporter.Context context) |
void |
JmxReporter.processCounter(MetricName name,
Counter counter,
com.yammer.metrics.reporting.JmxReporter.Context context) |
void |
GraphiteReporter.processCounter(MetricName name,
Counter counter,
Long epoch) |
void |
MetricsServlet.processCounter(MetricName name,
Counter counter,
com.yammer.metrics.reporting.MetricsServlet.Context context) |
void |
ConsoleReporter.processCounter(MetricName name,
Counter counter,
PrintStream stream) |
void |
GangliaReporter.processCounter(MetricName name,
Counter counter,
String x) |
void |
CsvReporter.processGauge(MetricName name,
Gauge<?> gauge,
CsvReporter.Context context) |
void |
JmxReporter.processGauge(MetricName name,
Gauge<?> gauge,
com.yammer.metrics.reporting.JmxReporter.Context context) |
void |
GraphiteReporter.processGauge(MetricName name,
Gauge<?> gauge,
Long epoch) |
void |
MetricsServlet.processGauge(MetricName name,
Gauge<?> gauge,
com.yammer.metrics.reporting.MetricsServlet.Context context) |
void |
ConsoleReporter.processGauge(MetricName name,
Gauge<?> gauge,
PrintStream stream) |
void |
GangliaReporter.processGauge(MetricName name,
Gauge<?> gauge,
String x) |
void |
CsvReporter.processHistogram(MetricName name,
Histogram histogram,
CsvReporter.Context context) |
void |
JmxReporter.processHistogram(MetricName name,
Histogram histogram,
com.yammer.metrics.reporting.JmxReporter.Context context) |
void |
GraphiteReporter.processHistogram(MetricName name,
Histogram histogram,
Long epoch) |
void |
MetricsServlet.processHistogram(MetricName name,
Histogram histogram,
com.yammer.metrics.reporting.MetricsServlet.Context context) |
void |
ConsoleReporter.processHistogram(MetricName name,
Histogram histogram,
PrintStream stream) |
void |
GangliaReporter.processHistogram(MetricName name,
Histogram histogram,
String x) |
void |
CsvReporter.processMeter(MetricName name,
Metered meter,
CsvReporter.Context context) |
void |
JmxReporter.processMeter(MetricName name,
Metered meter,
com.yammer.metrics.reporting.JmxReporter.Context context) |
void |
GraphiteReporter.processMeter(MetricName name,
Metered meter,
Long epoch) |
void |
MetricsServlet.processMeter(MetricName name,
Metered meter,
com.yammer.metrics.reporting.MetricsServlet.Context context) |
void |
ConsoleReporter.processMeter(MetricName name,
Metered meter,
PrintStream stream) |
void |
GangliaReporter.processMeter(MetricName name,
Metered meter,
String x) |
void |
CsvReporter.processTimer(MetricName name,
Timer timer,
CsvReporter.Context context) |
void |
JmxReporter.processTimer(MetricName name,
Timer timer,
com.yammer.metrics.reporting.JmxReporter.Context context) |
void |
GraphiteReporter.processTimer(MetricName name,
Timer timer,
Long epoch) |
void |
MetricsServlet.processTimer(MetricName name,
Timer timer,
com.yammer.metrics.reporting.MetricsServlet.Context context) |
void |
ConsoleReporter.processTimer(MetricName name,
Timer timer,
PrintStream stream) |
void |
GangliaReporter.processTimer(MetricName name,
Timer timer,
String x) |
protected String |
GraphiteReporter.sanitizeName(MetricName name) |
protected String |
GangliaReporter.sanitizeName(MetricName name) |
Copyright © 2014. All Rights Reserved.