package stats
- Alphabetic
- By Inheritance
- stats
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class HostMetricsExporter extends JsonExporter with HttpMuxHandler
- trait HostStatsReceiver extends StatsReceiverProxy
A StatsReceiver type that's used for per host stats only.
A StatsReceiver type that's used for per host stats only. The underlying implementation can be any StatsReceiver. The type is used as a marker.
- class InMemoryHostStatsReceiver extends HostStatsReceiver
- class JavaLoggerStatsReceiver extends StatsReceiverWithCumulativeGauges
- class JsonExporter extends Service[Request, Response]
A Finagle HTTP service that exports Metrics (available via MetricsView) in a JSON format.
A Finagle HTTP service that exports Metrics (available via MetricsView) in a JSON format.
This service respects metrics verbosity levels: it doesn't export "debug" (i.e., Verbosity.Debug) metrics unless they are allowlisted via the comma-separated
verbose
. - class MetricsBucketedHistogram extends MetricsHistogram
A MetricsHistogram that is latched such that a snapshot of the values are taken every
latchPeriod
and that value is returned for rest oflatchPeriod
.A MetricsHistogram that is latched such that a snapshot of the values are taken every
latchPeriod
and that value is returned for rest oflatchPeriod
. This gives pull based collectors a simple way to get consistent results.This is safe to use from multiple threads.
- class MetricsExporter extends JsonExporter with HttpMuxHandler with MetricsRegistry with SchemaRegistry
- trait MetricsHistogram extends AnyRef
A histogram that supports writing, querying, and resetting.
A histogram that supports writing, querying, and resetting.
This API is too powerful for normal usage, but is useful for implementors.
- class MetricsHostStatsReceiver extends HostStatsReceiver
- class MetricsStatsReceiver extends StatsReceiverWithCumulativeGauges with CollisionTrackingStatsReceiver with WithHistogramDetails
The standard implementation of StatsReceiver, optimized to be high precision and low overhead.
The standard implementation of StatsReceiver, optimized to be high precision and low overhead.
Note: Histogram is configured to store events in 60 second snapshots. 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.
- class PrometheusExporterHandler extends Service[Request, Response] with HttpMuxHandler
Service loaded HttpMuxHandler that serves metrics in Prometheus format
Service loaded HttpMuxHandler that serves metrics in Prometheus format
This class will be service-loaded and added to the Twitter-Server admin router allowing metrics to be easily exported in Prometheus format.
- trait Snapshot extends AnyRef
A snapshot of the state of the underlying stat.
- class SummarizingStatsReceiver extends StatsReceiverWithCumulativeGauges
Provides a
StatsReceiver
that prints nice summaries.Provides a
StatsReceiver
that prints nice summaries. Handy for short-lived programs where you want summaries.
Value Members
- object CancelledCategorizer
Matcher for Throwables caused by some form of cancellation.
- object ClientStatsReceiver extends StatsReceiverProxy
A client-specific StatsReceiver.
A client-specific StatsReceiver. All stats recorded using this receiver are prefixed with the string "clnt" by default.
- object ImmediateMetricsHistogram
- object JavaLoggerStatsReceiver
- object JsonExporter
- object LoadedHostStatsReceiver extends HostStatsReceiver
A com.twitter.finagle.stats.HostStatsReceiver that loads all service-loadable receivers and broadcasts stats to them.
- object Metrics
- object MetricsHistogramFactory
- object MetricsStatsReceiver
- object ServerStatsReceiver extends StatsReceiverProxy
A server-specific StatsReceiver.
A server-specific StatsReceiver. All stats recorded using this receiver are prefixed with the string "srv" by default.
- object Snapshot
- object debugLoggedStatNames extends GlobalFlag[Set[String]]
- object includeEmptyHistograms extends GlobalFlag[Boolean]
If a histogram has no data collected (its count is 0), it can be beneficial to not export all the histogram details as there will be no interesting data there.
If a histogram has no data collected (its count is 0), it can be beneficial to not export all the histogram details as there will be no interesting data there. When this flag is set to
false
, only thecount=0
is exported. Whentrue
, all of the details will be exported. - object logOnShutdown extends GlobalFlag[Boolean]
- object rwLockSpinWait extends GlobalFlag[Int]
- object scopeSeparator extends GlobalFlag[String]
- object statsFilter extends GlobalFlag[String]
Denylist of regex, comma-separated.
Denylist of regex, comma-separated. Comma is a reserved character and cannot be used. Used with regexes from statsFilterFile.
See https://www.scala-lang.org/api/current/#scala.util.matching.Regex
- object statsFilterFile extends GlobalFlag[Set[File]]
Comma-separated denylist of files.
Comma-separated denylist of files. Each file may have multiple filters, separated by new lines. Used with regexes from statsFilter.
See https://www.scala-lang.org/api/current/#scala.util.matching.Regex
- object useCounterDeltas extends GlobalFlag[Boolean]
- object verbose extends GlobalFlag[String]
A global flag that augments a tunable, Verbose, with a comma-separated allowlist for debug metrics.
A global flag that augments a tunable, Verbose, with a comma-separated allowlist for debug metrics. The tunable, Verbose, has a higher priority if defined.