| Package | Description |
|---|---|
| com.yammer.metrics | |
| com.yammer.metrics.reporting |
| Modifier and Type | Method and Description |
|---|---|
static MetricsRegistry |
Metrics.defaultRegistry()
Returns the (static) default registry.
|
| Modifier and Type | Method and Description |
|---|---|
protected MetricsRegistry |
AbstractReporter.getMetricsRegistry()
Returns the reporter's
MetricsRegistry. |
| Modifier and Type | Method and Description |
|---|---|
static void |
CsvReporter.enable(MetricsRegistry metricsRegistry,
File outputDir,
long period,
TimeUnit unit)
Enables the CSV reporter for the given metrics registry, and causes it to write to files in
outputDir with the specified period. |
static void |
ConsoleReporter.enable(MetricsRegistry metricsRegistry,
long period,
TimeUnit unit)
Enables the console reporter for the given metrics registry, and causes it to print to STDOUT
with the specified period and unrestricted output.
|
static void |
JmxReporter.startDefault(MetricsRegistry registry)
Starts the default instance of
JmxReporter. |
| Constructor and Description |
|---|
AbstractPollingReporter(MetricsRegistry registry,
String name)
Creates a new
AbstractPollingReporter instance. |
AbstractReporter(MetricsRegistry registry)
Creates a new
AbstractReporter instance. |
ConsoleReporter(MetricsRegistry metricsRegistry,
PrintStream out,
MetricPredicate predicate)
Creates a new
ConsoleReporter for a given metrics registry. |
ConsoleReporter(MetricsRegistry metricsRegistry,
PrintStream out,
MetricPredicate predicate,
Clock clock,
TimeZone timeZone)
Creates a new
ConsoleReporter for a given metrics registry. |
ConsoleReporter(MetricsRegistry metricsRegistry,
PrintStream out,
MetricPredicate predicate,
Clock clock,
TimeZone timeZone,
Locale locale)
Creates a new
ConsoleReporter for a given metrics registry. |
CsvReporter(MetricsRegistry metricsRegistry,
File outputDir)
Creates a new
CsvReporter which will write all metrics from the given
MetricsRegistry to CSV files in the given output directory. |
CsvReporter(MetricsRegistry metricsRegistry,
MetricPredicate predicate,
File outputDir)
Creates a new
CsvReporter which will write metrics from the given
MetricsRegistry which match the given MetricPredicate to CSV files in the
given output directory. |
CsvReporter(MetricsRegistry metricsRegistry,
MetricPredicate predicate,
File outputDir,
Clock clock)
Creates a new
CsvReporter which will write metrics from the given
MetricsRegistry which match the given MetricPredicate to CSV files in the
given output directory. |
JmxReporter(MetricsRegistry registry)
Creates a new
JmxReporter for the given registry. |
Copyright © 2012. All Rights Reserved.