com.twitter.ostrich.stats

Stats

object Stats extends StatsCollection

Singleton StatsCollector that collects performance data for the application.

Linear Supertypes
StatsCollection, JsonSerializable, StatsProvider, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Stats
  2. StatsCollection
  3. JsonSerializable
  4. StatsProvider
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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)(gauge: ⇒ Double): Unit

    Add a gauge function, which is used to sample instantaneous values.

    Add a gauge function, which is used to sample instantaneous values.

    Definition Classes
    StatsCollectionStatsProvider
  7. def addListener(listener: StatsListener): Unit

    Attach a new StatsListener to this collection.

    Attach a new StatsListener to this collection. Additions to metrics will be passed along to each listener.

    Definition Classes
    StatsCollection
  8. def addMetric(name: String, distribution: Distribution): Unit

    Adds a set of values to a named metric.

    Adds a set of values to a named metric. Effectively the incoming distribution is merged with the named metric.

    Definition Classes
    StatsProvider
  9. def addMetric(name: String, value: Int): Unit

    Adds a value to a named metric, which tracks min, max, mean, and a histogram.

    Adds a value to a named metric, which tracks min, max, mean, and a histogram.

    Definition Classes
    StatsProvider
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clearAll(): Unit

    Reset all collected stats and erase the history.

    Reset all collected stats and erase the history. Probably only useful for unit tests.

    Definition Classes
    StatsCollectionStatsProvider
  12. def clearGauge(name: String): Unit

    Remove a gauge from the provided stats.

    Remove a gauge from the provided stats.

    Definition Classes
    StatsCollectionStatsProvider
  13. def clearLabel(name: String): Unit

    Clear an existing label.

    Clear an existing label.

    Definition Classes
    StatsCollectionStatsProvider
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. val counterMap: ConcurrentHashMap[String, Counter]

    Attributes
    protected
    Definition Classes
    StatsCollection
  16. def delta(oldValue: Long, newValue: Long): Long

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

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

    Definition Classes
    AnyRef → Any
  19. def fillInJvmCounters(out: Map[String, Long]): Unit

    Definition Classes
    StatsCollection
  20. def fillInJvmGauges(out: Map[String, Double]): Unit

    Use JMX (shudder) to fill in stats about the JVM into a mutable map.

    Use JMX (shudder) to fill in stats about the JVM into a mutable map.

    Definition Classes
    StatsCollection
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. val gaugeMap: ConcurrentHashMap[String, () ⇒ Double]

    Attributes
    protected
    Definition Classes
    StatsCollection
  23. def get(name: String): StatsCollection

    Return a named StatsCollection as defined in an AdminServiceConfig.

    Return a named StatsCollection as defined in an AdminServiceConfig. If the named collection doesn't exist, the global stats object is returned.

  24. def get(): StatsSummary

    Summarize all the counters, metrics, gauges, and labels in this collection.

    Summarize all the counters, metrics, gauges, and labels in this collection.

    Definition Classes
    StatsProvider
  25. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  26. def getCounter(name: String): Counter

    Get the Counter object representing a named counter.

    Get the Counter object representing a named counter.

    Definition Classes
    StatsCollectionStatsProvider
  27. def getCounters(): HashMap[String, Long]

    Summarize all the counters in this collection.

    Summarize all the counters in this collection.

    Definition Classes
    StatsCollectionStatsProvider
  28. def getGauge(name: String): Option[Double]

    Get the current value of a named gauge.

    Get the current value of a named gauge.

    Definition Classes
    StatsCollectionStatsProvider
  29. def getGauges(): HashMap[String, Double]

    Summarize all the gauges in this collection.

    Summarize all the gauges in this collection.

    Definition Classes
    StatsCollectionStatsProvider
  30. def getLabel(name: String): Option[String]

    Get the current value of a named label, if it exists.

    Get the current value of a named label, if it exists.

    Definition Classes
    StatsCollectionStatsProvider
  31. def getLabels(): Map[String, String]

    Summarize all the labels in this collection.

    Summarize all the labels in this collection.

    Definition Classes
    StatsCollectionStatsProvider
  32. def getMetric(name: String): Metric

    Get the Metric object representing a named metric.

    Get the Metric object representing a named metric.

    Definition Classes
    StatsCollectionStatsProvider
  33. def getMetrics(): HashMap[String, Distribution]

    Summarize all the metrics in this collection.

    Summarize all the metrics in this collection.

    Definition Classes
    StatsCollectionStatsProvider
  34. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  35. var includeJvmStats: Boolean

    Set this to true to have the collection fill in a set of automatic gauges from the JVM.

    Set this to true to have the collection fill in a set of automatic gauges from the JVM.

    Definition Classes
    StatsCollection
  36. def incr(name: String): Long

    Increments a counter by one, returning the new value.

    Increments a counter by one, returning the new value.

    Definition Classes
    StatsProvider
  37. def incr(name: String, count: Int): Long

    Increments a counter, returning the new value.

    Increments a counter, returning the new value.

    Definition Classes
    StatsProvider
  38. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  39. val labelMap: ConcurrentHashMap[String, String]

    Attributes
    protected
    Definition Classes
    StatsCollection
  40. val log: Logger

    Definition Classes
    StatsProvider
  41. def make(name: String): StatsCollection

    Make a named StatsCollection, or return an existing collection if one already exists under that name.

  42. def makeCounter(name: String, atomic: AtomicLong): Counter

    Definition Classes
    StatsCollection
  43. def makeDeltaFunction(counter: Counter): () ⇒ Double

    Create a function that returns the delta of a counter each time it's called.

  44. val metricMap: ConcurrentHashMap[String, Metric]

    Attributes
    protected
    Definition Classes
    StatsCollection
  45. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  46. def newCounter(name: String): Counter

    Attributes
    protected
    Definition Classes
    StatsCollection
  47. def newMetric(name: String): Metric

    Attributes
    protected
    Definition Classes
    StatsCollection
  48. final def notify(): Unit

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

    Definition Classes
    AnyRef
  50. def removeCounter(name: String): Unit

    Definition Classes
    StatsCollection
  51. def removeMetric(name: String): Option[Metric]

    Definition Classes
    StatsCollection
  52. def setGauge(name: String, value: Double): Unit

    Set a gauge to a specific value.

    Set a gauge to a specific value. This overwrites any previous value or function.

    Definition Classes
    StatsProvider
  53. def setLabel(name: String, value: String): Unit

    Set a label to a string.

    Set a label to a string.

    Definition Classes
    StatsCollectionStatsProvider
  54. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  55. def time[T](name: String)(f: ⇒ T): T

    Runs the function f and logs that duration, in milliseconds, with the given name.

    Runs the function f and logs that duration, in milliseconds, with the given name.

    Definition Classes
    StatsProvider
  56. def timeFutureMicros[T](name: String)(f: Future[T]): Future[T]

    Runs the function f and logs that duration until the future is satisfied, in microseconds, with the given name.

    Runs the function f and logs that duration until the future is satisfied, in microseconds, with the given name.

    Definition Classes
    StatsProvider
  57. def timeFutureMillisLazy[T](name: String)(f: ⇒ Future[T]): Future[T]

    Lazily runs the Future that f returns and measure the duration of Future creation and time until it is satisfied, in milliseconds, with the given name

    Lazily runs the Future that f returns and measure the duration of Future creation and time until it is satisfied, in milliseconds, with the given name

    Definition Classes
    StatsProvider
  58. def timeFutureNanos[T](name: String)(f: Future[T]): Future[T]

    Runs the function f and logs that duration until the future is satisfied, in nanoseconds, with the given name.

    Runs the function f and logs that duration until the future is satisfied, in nanoseconds, with the given name.

    Definition Classes
    StatsProvider
  59. def timeMicros[T](name: String)(f: ⇒ T): T

    Runs the function f and logs that duration, in microseconds, with the given name.

    Runs the function f and logs that duration, in microseconds, with the given name.

    Definition Classes
    StatsProvider
  60. def timeNanos[T](name: String)(f: ⇒ T): T

    Runs the function f and logs that duration, in nanoseconds, with the given name.

    Runs the function f and logs that duration, in nanoseconds, with the given name.

    Definition Classes
    StatsProvider
  61. def toJson(): String

    Definition Classes
    StatsCollection → JsonSerializable
  62. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def timeFutureMillis[T](name: String)(f: Future[T]): Future[T]

    Runs the function f and logs that duration until the future is satisfied, in milliseconds, with the given name.

    Runs the function f and logs that duration until the future is satisfied, in milliseconds, with the given name.

    Definition Classes
    StatsProvider
    Annotations
    @deprecated
    Deprecated

    Use timeFutureMillisLazy instead

Inherited from StatsCollection

Inherited from JsonSerializable

Inherited from StatsProvider

Inherited from AnyRef

Inherited from Any

Ungrouped