Package org.apache.solr.metrics
The
SolrCoreMetricManager
is responsible for collecting metrics
from SolrMetricProducer
's and exposing metrics to SolrMetricReporter
's.-
Interface Summary Interface Description MetricSuppliers.NoOpMetric Marker interface for all no-op metrics.SolrMetricProducer Used by objects that expose metrics throughSolrMetricManager
. -
Class Summary Class Description AggregateMetric This class is used for keeping several partial named values and providing useful statistics over them.AggregateMetric.Update Simple class to represent current value and how many times it was set.AltBufferPoolMetricSet This is an alternative implementation ofBufferPoolMetricSet
that doesn't need an MBean server.FilteringSolrMetricReporter ASolrMetricReporter
that supports (prefix) filters.MetricsMap Dynamically constructed map of metrics, intentionally different fromMetricSet
where each metric had to be known in advance and registered separately inMetricRegistry
.MetricSuppliers Helper class for constructing instances ofMetricRegistry.MetricSupplier
based on plugin configuration.MetricSuppliers.DefaultCounterSupplier DefaultCounter
supplier.MetricSuppliers.DefaultHistogramSupplier Default supplier ofHistogram
instances, with configurable reservoir.MetricSuppliers.DefaultMeterSupplier DefaultMeter
supplier.MetricSuppliers.DefaultTimerSupplier Default supplier ofTimer
instances, with configurable clock and reservoir.MetricSuppliers.NoOpCounterSupplier No-op implementation ofCounter
supplier.MetricSuppliers.NoOpGauge No-op implementation ofGauge
.MetricSuppliers.NoOpHistogramSupplier No-op implementation ofHistogram
supplier.MetricSuppliers.NoOpMeterSupplier No-op implementation ofMeter
supplier.MetricSuppliers.NoOpTimerSupplier No-op implementation ofTimer
supplier.OperatingSystemMetricSet This is an extended replacement forFileDescriptorRatioGauge
- that class uses reflection and doesn't work under Java 9.SolrCoreContainerReporter ASolrMetricReporter
that has access to itsCoreContainer
.SolrCoreMetricManager Helper class for managing registration ofSolrMetricProducer
's andSolrMetricReporter
's specific to aSolrCore
instance.SolrCoreReporter AFilteringSolrMetricReporter
that has access to itsSolrCore
.SolrMetricInfo Wraps meta-data for a metric.SolrMetricManager This class maintains a repository of namedMetricRegistry
instances, and provides several helper methods for managing various aspects of metrics reporting: registry creation, clearing and removal, creation of most common metric implementations, management ofSolrMetricReporter
-s specific to a named registry.SolrMetricManager.AndFilter An implementation ofMetricFilter
that selects metrics that match all filters in a list of filters.SolrMetricManager.GaugeWrapper<T> This is a wrapper forGauge
metrics, which are usually implemented as lambdas that often keep a reference to their parent instance.SolrMetricManager.OrFilter An implementation ofMetricFilter
that selects metrics that match any filter in a list of filters.SolrMetricManager.PrefixFilter An implementation ofMetricFilter
that selects metrics with names that start with one of prefixes.SolrMetricManager.RegexFilter An implementation ofMetricFilter
that selects metrics with names that match regular expression patterns.SolrMetricReporter Interface for 'pluggable' metric reporters.SolrMetricsContext This class represents a metrics context that ties together components with the same life-cycle and provides convenient access to the metric registry. -
Enum Summary Enum Description SolrMetricManager.ResolutionStrategy Potential conflict resolution strategies when attempting to register a new metric that already exists