github.gphat.censorinus

StatsDClient

class StatsDClient extends Client

A StatsD client! You should create one of these and reuse it across your application.

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

Instance Constructors

  1. new StatsDClient(hostname: String = "localhost", port: Int = MetricSender.DEFAULT_STATSD_PORT, prefix: String = "", defaultSampleRate: Double = 1.0, asynchronous: Boolean = true, allowExceptions: Boolean = false)

    Creates a new client instance

    Creates a new client instance

    hostname

    the host to send metrics to, defaults to localhost

    port

    the port to send metrics to, defaults to 8125

    prefix

    A prefix to add to all metric names. A period will be added to the end, resulting in prefix.metricname.

    defaultSampleRate

    A sample rate default to be used for all metric methods. Defaults to 1.0

    asynchronous

    True if you want the client to asynch, false for blocking!

    allowExceptions

    If false, any SocketExceptions will be swallowed silently

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 clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def counter(name: String, value: Double, sampleRate: Double = defaultSampleRate, bypassSampler: Boolean = false): Unit

    Emit a counter metric.

    Emit a counter metric.

    name

    The name of the metric

    value

    The value of the metric, or how much to increment by

    sampleRate

    The rate at which to sample this metric.

    bypassSampler

    If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.

  9. def decrement(name: String, value: Double = 1, sampleRate: Double = defaultSampleRate, bypassSampler: Boolean = false): Unit

    Emit a decrement metric.

    Emit a decrement metric.

    name

    The name of the metric

    value

    The value of the metric, or how much to decrement by. Defaults to -1

    sampleRate

    The rate at which to sample this metric.

    bypassSampler

    If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.

  10. def enqueue(metric: Metric, sampleRate: Double = defaultSampleRate, bypassSampler: Boolean = false): Unit

    Definition Classes
    Client
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def gauge(name: String, value: Double, sampleRate: Double = defaultSampleRate, bypassSampler: Boolean = false): Unit

    Emit a gauge metric.

    Emit a gauge metric.

    name

    The name of the metric

    value

    The value of the metric, or current value of the gauge

    sampleRate

    The rate at which to sample this metric.

    bypassSampler

    If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.

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

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

    Definition Classes
    AnyRef → Any
  17. def increment(name: String, value: Double = 1, sampleRate: Double = defaultSampleRate, bypassSampler: Boolean = false): Unit

    Emit an increment metric.

    Emit an increment metric.

    name

    The name of the metric

    value

    The value of the metric, or the amount to increment by. Defaults to 1

    sampleRate

    The rate at which to sample this metric.

    bypassSampler

    If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def makeName(name: String): String

    Attributes
    protected
    Definition Classes
    Client
  20. def meter(name: String, value: Double, sampleRate: Double = defaultSampleRate, bypassSampler: Boolean = false): Unit

    Emit a meter metric.

    Emit a meter metric.

    name

    The name of the metric

    value

    The value of the meter

    sampleRate

    The rate at which to sample this metric.

    bypassSampler

    If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.

  21. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  24. def set(name: String, value: String): Unit

    Emit e a set metric.

    Emit e a set metric.

    name

    The name of the metric

    value

    The item to add to the set

  25. def shutdown(): Unit

    Explicitly shut down the client and it's underlying bits.

    Explicitly shut down the client and it's underlying bits.

    Definition Classes
    Client
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def timer(name: String, milliseconds: Double, sampleRate: Double = defaultSampleRate, bypassSampler: Boolean = false): Unit

    Emit a timer metric.

    Emit a timer metric.

    name

    The name of the metric

    sampleRate

    The rate at which to sample this metric.

    bypassSampler

    If true, the metric will always be passed through, but the sample rate will be included in the emitted metric. This is useful for when you occasionally do your own sampling.

  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Client

Inherited from AnyRef

Inherited from Any

Ungrouped