public interface MetricsCollector
extends com.google.common.util.concurrent.Service
| Modifier and Type | Method and Description | 
|---|---|
void | 
configure(org.apache.hadoop.conf.Configuration conf)
Called before the collector service is started, allowing the collector to setup any
 required configuration. 
 | 
void | 
gauge(String metricName,
     int value,
     String... tags)
Report a metric as an absolute value. 
 | 
void | 
histogram(String metricName,
         int value)
Report a metric calculating the distribution of the value. 
 | 
void | 
rate(String metricName)
Report a metric as a count over a given time duration. 
 | 
void | 
rate(String metricName,
    int count)
Report a metric as a count over a given time duration. 
 | 
void gauge(String metricName, int value, String... tags)
void rate(String metricName)
void rate(String metricName, int count)
void histogram(String metricName, int value)
void configure(org.apache.hadoop.conf.Configuration conf)
Copyright © 2016 The Apache Software Foundation. All rights reserved.