com.netflix.servo.publish
Interface MetricPoller

All Known Implementing Classes:
BaseMetricPoller, CompositeMetricPoller, JmxMetricPoller, JvmMetricPoller, MonitorRegistryMetricPoller

public interface MetricPoller

A poller that can be used to fetch current values for a list of metrics on demand.


Method Summary
 java.util.List<Metric> poll(MetricFilter filter)
          Fetch the current values for a set of metrics that match the provided filter.
 java.util.List<Metric> poll(MetricFilter filter, boolean reset)
          Fetch the current values for a set of metrics that match the provided filter.
 

Method Detail

poll

java.util.List<Metric> poll(MetricFilter filter)
Fetch the current values for a set of metrics that match the provided filter. This method should be cheap, thread-safe, and interruptible so that it can be called frequently to collect metrics at a regular interval.

Parameters:
filter - retricts the set of metrics
Returns:
list of current metric values

poll

java.util.List<Metric> poll(MetricFilter filter,
                            boolean reset)
Fetch the current values for a set of metrics that match the provided filter. This method should be cheap, thread-safe, and interruptible so that it can be called frequently to collect metrics at a regular interval.

Parameters:
filter - retricts the set of metrics
reset - should this poller trigger a reset for ResettableMonitor
Returns:
list of current metric values