com.twitter.finagle.stats

MetricsStatsReceiver

class MetricsStatsReceiver extends StatsReceiverWithCumulativeGauges

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.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MetricsStatsReceiver
  2. StatsReceiverWithCumulativeGauges
  3. StatsReceiver
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MetricsStatsReceiver()

  2. new MetricsStatsReceiver(registry: Metrics)

  3. new MetricsStatsReceiver(registry: Metrics, sink: Sink)

  4. new MetricsStatsReceiver(registry: Metrics, sink: Sink, histogramFactory: (String) ⇒ HistogramInterface)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def addGauge(name: String*)(f: ⇒ Float): Gauge

    Definition Classes
    MetricsStatsReceiver → StatsReceiverWithCumulativeGauges → StatsReceiver
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def counter(names: String*): Counter

    Create and register a counter inside the underlying Metrics library

    Create and register a counter inside the underlying Metrics library

    Definition Classes
    MetricsStatsReceiver → StatsReceiver
  10. def counter0(name: String): Counter

    Definition Classes
    StatsReceiver
  11. def deregisterGauge(names: Seq[String]): Unit

    Attributes
    protected[this]
    Definition Classes
    MetricsStatsReceiver → StatsReceiverWithCumulativeGauges
  12. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def isNull: Boolean

    Definition Classes
    StatsReceiver
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def numUnderlying(name: String*): Int

    Attributes
    protected
    Definition Classes
    StatsReceiverWithCumulativeGauges
  23. def provideGauge(name: String*)(f: ⇒ Float): Unit

    Definition Classes
    StatsReceiver
  24. def registerGauge(names: Seq[String], f: ⇒ Float): Unit

    Attributes
    protected[this]
    Definition Classes
    MetricsStatsReceiver → StatsReceiverWithCumulativeGauges
  25. def registerLargeGaugeLinter(rules: Rules): Unit

    Definition Classes
    StatsReceiverWithCumulativeGauges
  26. val registry: Metrics

  27. val repr: MetricsStatsReceiver

    Definition Classes
    MetricsStatsReceiver → StatsReceiver
  28. def scope(namespace: String): StatsReceiver

    Definition Classes
    StatsReceiver
  29. def scopeSuffix(suffix: String): StatsReceiver

    Definition Classes
    StatsReceiver
  30. def stat(names: String*): Stat

    Create and register a stat (histogram) inside the underlying Metrics library

    Create and register a stat (histogram) inside the underlying Metrics library

    Definition Classes
    MetricsStatsReceiver → StatsReceiver
  31. def stat0(name: String): Stat

    Definition Classes
    StatsReceiver
  32. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  33. def toString(): String

    Definition Classes
    MetricsStatsReceiver → AnyRef → Any
  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def time[T](name: String*)(f: ⇒ T): T

    Definition Classes
    StatsReceiver
    Annotations
    @deprecated
    Deprecated

    (Since version 2015-2-22) Use Stat.time instead

  2. def time[T](unit: TimeUnit, name: String*)(f: ⇒ T): T

    Definition Classes
    StatsReceiver
    Annotations
    @deprecated
    Deprecated

    (Since version 2015-2-22) Use Stat.time instead

  3. def time[T](unit: TimeUnit, stat: Stat)(f: ⇒ T): T

    Definition Classes
    StatsReceiver
    Annotations
    @deprecated
    Deprecated

    (Since version 2015-2-22) Use Stat.time instead

  4. def timeFuture[T](name: String*)(f: ⇒ Future[T]): Future[T]

    Definition Classes
    StatsReceiver
    Annotations
    @deprecated
    Deprecated

    (Since version 2015-2-22) Use Stat.timeFuture instead

  5. def timeFuture[T](unit: TimeUnit, name: String*)(f: ⇒ Future[T]): Future[T]

    Definition Classes
    StatsReceiver
    Annotations
    @deprecated
    Deprecated

    (Since version 2015-2-22) Use Stat.timeFuture instead

  6. def timeFuture[T](unit: TimeUnit, stat: Stat)(f: ⇒ Future[T]): Future[T]

    Definition Classes
    StatsReceiver
    Annotations
    @deprecated
    Deprecated

    (Since version 2015-2-22) Use Stat.timeFuture instead

Inherited from StatsReceiver

Inherited from AnyRef

Inherited from Any

Ungrouped