nl.grons.metrics.scala

HdrMetricBuilder

class HdrMetricBuilder extends MetricBuilder

An alternative metric builder that creates Histograms and Timers with Reservoirs from the HdrHistogram library.

See the the manual for more instructions on using hdrhistogram.

Linear Supertypes
MetricBuilder, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. HdrMetricBuilder
  2. MetricBuilder
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new HdrMetricBuilder(baseName: MetricName, registry: MetricRegistry, resetAtSnapshot: Boolean)

    resetAtSnapshot

    false to use reservoirs that accumulate internal state forever, or true to use a reservoir that resets its internal state on each snapshot (which is how reporters get information from reservoirs). See this article for when the latter is useful.

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def cachedGauge[A](name: String, timeout: FiniteDuration, scope: String = null)(f: ⇒ A): Gauge[A]

    Registers a new gauge metric that caches its value for a given duration.

    Registers a new gauge metric that caches its value for a given duration.

    name

    the name of the gauge

    timeout

    the timeout

    scope

    the scope of the gauge or null for no scope

    Definition Classes
    MetricBuilder
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def counter(name: String, scope: String = null): Counter

    Creates a new counter metric.

    Creates a new counter metric.

    name

    the name of the counter

    scope

    the scope of the counter or null for no scope

    Definition Classes
    MetricBuilder
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def gauge[A](name: String, scope: String = null)(f: ⇒ A): Gauge[A]

    Registers a new gauge metric.

    Registers a new gauge metric.

    name

    the name of the gauge

    scope

    the scope of the gauge or null for no scope

    Definition Classes
    MetricBuilder
  14. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  16. def histogram(name: String, scope: String): Histogram

    Creates a new histogram metric with a Reservoir from the HdrHistogram library.

    Creates a new histogram metric with a Reservoir from the HdrHistogram library.

    name

    the name of the histogram

    scope

    the scope of the histogram or null for no scope

    Definition Classes
    HdrMetricBuilderMetricBuilder
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def meter(name: String, scope: String = null): Meter

    Creates a new meter metric.

    Creates a new meter metric.

    name

    the name of the meter

    scope

    the scope of the meter or null for no scope

    Definition Classes
    MetricBuilder
  19. def metricNameFor(name: String, scope: String = null): String

    Attributes
    protected
    Definition Classes
    MetricBuilder
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def timer(name: String, scope: String): Timer

    Creates a new timer metric with a Reservoir from the HdrHistogram library.

    Creates a new timer metric with a Reservoir from the HdrHistogram library.

    name

    the name of the timer

    scope

    the scope of the timer or null for no scope

    Definition Classes
    HdrMetricBuilderMetricBuilder
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. def unregisterGauges(): Unit

    Unregisters all gauges that were created through this builder.

    Unregisters all gauges that were created through this builder.

    Definition Classes
    MetricBuilder
  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from MetricBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped