Uses of Class
org.microproxy.stats.StatsRegistry
Packages that use StatsRegistry
Package
Description
-
Uses of StatsRegistry in org.microproxy
Methods in org.microproxy that return StatsRegistryModifier and TypeMethodDescriptiondefault StatsRegistryHttpProxyServer.getStats()The proxy's metrics, asHttpProxyServerBootstrap.withStats(org.microproxy.stats.StatsRegistry)orHttpProxyServerBootstrap.withMetrics(boolean)configured them.default StatsRegistryHttpProxyServerBootstrap.getStats()Returns the registry configured so far:NOOPwithout metrics.Methods in org.microproxy with parameters of type StatsRegistryModifier and TypeMethodDescriptiondefault HttpProxyServerBootstrapHttpProxyServerBootstrap.withStats(StatsRegistry registry) Keeps the proxy's metrics inregistry: Envoy's stats (http.<name>.*,cluster.<name>.*,listener.<address>.*,server.*, ...; seeStatsRegistry), whichStatsFormatterrenders for Prometheus andStatsdSinkpushes to statsd. -
Uses of StatsRegistry in org.microproxy.extras
Methods in org.microproxy.extras with parameters of type StatsRegistryModifier and TypeMethodDescriptionvoidConcurrencyLimiter.registerStats(StatsRegistry registry, String prefix) Registers the limiter's state withregistryas<prefix>.in_useand<prefix>.waiting(gauges), and<prefix>.acquired,<prefix>.rq_blocked(requests over the limit, refused or let through in shadow mode) and<prefix>.reclaimed(counters), read when the metrics are shown. -
Uses of StatsRegistry in org.microproxy.starlark
Methods in org.microproxy.starlark with parameters of type StatsRegistryModifier and TypeMethodDescriptionstatic StarlarkScriptStarlarkScript.compile(String source, String name, StarlarkScript.Limits limits, Map<String, ?> constants, StatsRegistry stats) Compiles and runssourcewithconstantsas read-only globals, itsstatsmodule counting intostats(ScriptStats);nameappears in error messages.static StarlarkScriptStarlarkScript.load(Path file, StarlarkScript.Limits limits, Map<String, ?> constants, StatsRegistry stats) Loads and runs the script infile, withconstantsas read-only globals and itsstatsmodule counting intostats.ScriptedProxy.Builder.stats(StatsRegistry stats) The registry the script'sstatsmodule counts into, asscript.<name>(ScriptStats); usually the proxy's (HttpProxyServerBootstrap.getStats()). -
Uses of StatsRegistry in org.microproxy.stats
Fields in org.microproxy.stats declared as StatsRegistryModifier and TypeFieldDescriptionstatic final StatsRegistryStatsRegistry.NOOPA registry whose metrics do nothing and that keeps none; the default of every proxy.Methods in org.microproxy.stats that return StatsRegistryModifier and TypeMethodDescriptionStatsRegistry.Builder.build()Returns a new registry with these settings.static StatsRegistryStatsRegistry.create()Returns a registry with the default settings.Methods in org.microproxy.stats with parameters of type StatsRegistryModifier and TypeMethodDescriptionstatic StatsdSink.BuilderStatsdSink.builder(StatsRegistry registry, String hostAndPort) Starts a sink ofregistry's metrics to the statsd server athost:port.static StatsdSink.BuilderStatsdSink.builder(StatsRegistry registry, InetSocketAddress target) Starts a sink ofregistry's metrics to the statsd server attarget.static StringStatsFormatter.json(StatsRegistry registry) The metrics as Envoy's/stats?format=json:{"stats": [...]}with an object{"name": ..., "value": ...}per counter and gauge, sorted by flat name, and last an object{"histograms": {"supported_quantiles": [...], "computed_quantiles": [...]}}whose entries give each histogram's estimated quantiles as{"interval": null, "cumulative": ...}(nullwhen nothing was recorded).static StringStatsFormatter.json(StatsRegistry registry, Predicate<? super Metric> include) The metricsincludeaccepts, as Envoy's/stats?format=json(seeStatsFormatter.json(StatsRegistry)).static StringStatsFormatter.prometheus(StatsRegistry registry) The metrics in Prometheus's text exposition format, version 0.0.4: per family (metrics with the same tag-extracted name), a# HELPline when the metric has a description, a# TYPEline, and a sample per tag set; a histogram has a cumulative_bucketsample per bound (le, the last+Inf), then_sumand_count.static StringStatsFormatter.prometheus(StatsRegistry registry, Predicate<? super Metric> include) The metricsincludeaccepts, in Prometheus's text exposition format (seeStatsFormatter.prometheus(StatsRegistry)).static StringStatsFormatter.text(StatsRegistry registry) The metrics as Envoy's/statstext: a linename: valueper counter and gauge, sorted by flat name, then a line per histogram with its estimated quantiles,name: P0(nan,0.5) P25(nan,1.2) ...(Envoy's interval values are not kept:nan), orname: No recorded values.static StringStatsFormatter.text(StatsRegistry registry, Predicate<? super Metric> include)