Class

kanaloa.reactive.dispatcher.metrics

StatsDClient

Related Doc: package metrics

Permalink

class StatsDClient extends AnyRef

Client for sending stats to StatsD uses Akka to manage concurrency

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. StatsDClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StatsDClient(context: ActorRefFactory, host: String, port: Int, prefix: String = "", multiMetrics: Boolean = true, packetBufferSize: Int = 1024, defaultSampleRate: Double = 1.0)

    Permalink

    context

    The Akka ActorContext

    host

    The statsd host

    port

    The statsd port

    prefix

    Prefix for metrics keys (no trailing period), can be empty string

    multiMetrics

    If true, multiple stats will be sent in a single UDP packet

    packetBufferSize

    If multiMetrics is true, this is the max buffer size before sending the UDP packet

    defaultSampleRate

    Default sample rate to use for metrics, if unspecified

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def decrement(key: String, magnitude: Int = 1, sampleRate: Double = defaultSampleRate): Boolean

    Permalink

    Decrement StatsD counter

    Decrement StatsD counter

    key

    name of the stat

    magnitude

    how much to decrement

  7. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def gauge(key: String, value: String, sampleRate: Double = defaultSampleRate): Boolean

    Permalink

    StatsD now also supports gauges, arbitrary values, which can be recorded.

    StatsD now also supports gauges, arbitrary values, which can be recorded.

    key

    name of the stat

    value

    Can be a fixed value or increase or decrease (Ex: "10" "-1" "+5")

  11. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def increment(key: String, magnitude: Int = 1, sampleRate: Double = defaultSampleRate): Boolean

    Permalink

    Increment StatsD counter

    Increment StatsD counter

    key

    name of the stat

    magnitude

    how much to increment

  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. def set(key: String, value: Int, sampleRate: Double = defaultSampleRate): Boolean

    Permalink

    StatsD supports counting unique occurrences of events between flushes, using a Set to store all occurring events.

    StatsD supports counting unique occurrences of events between flushes, using a Set to store all occurring events.

    key

    name of the stat

    value

    value of the set

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def timing(key: String, value: Int, sampleRate: Double = defaultSampleRate): Boolean

    Permalink

    Sends timing stats in milliseconds to StatsD

    Sends timing stats in milliseconds to StatsD

    key

    name of the stat

    value

    time in milliseconds

  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped