Create and register a counter inside the underlying Metrics library
Create and register a counter inside the underlying Metrics library
Create and register a stat (histogram) inside the underlying Metrics library
Create and register a stat (histogram) inside the underlying Metrics library
This implementation of StatsReceiver uses the com.twitter.common.metrics library under the hood.
Note: Histogram uses com.twitter.common.stats.WindowedApproxHistogram under the hood. It is (by default) configured to store events in a 80 seconds moving window, reporting metrics on the first 60 seconds. It means that when you add a value, you need to wait at most 20 seconds before this value will be aggregated in the exported metrics.