package stats
- Alphabetic
- By Inheritance
- stats
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class HostMetricsExporter extends JsonExporter with HttpMuxHandler
- 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
latchPeriodand that value is returned for rest oflatchPeriod.A MetricsHistogram that is latched such that a snapshot of the values are taken every
latchPeriodand 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.
Value Members
- object ImmediateMetricsHistogram
- object JsonExporter
- object Metrics
- object MetricsStatsReceiver
- object Snapshot
- object debugLoggedStatNames extends GlobalFlag[Set[String]]
- object format extends GlobalFlag[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=0is 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.