Package org.apache.solr.metrics
package org.apache.solr.metrics
The
SolrCoreMetricManager is responsible for collecting metrics
from SolrMetricProducer's and exposing metrics to SolrMetricReporter's.-
ClassDescriptionThis class is used for keeping several partial named values and providing useful statistics over them.Simple class to represent current value and how many times it was set.This is an alternative implementation of
BufferPoolMetricSetthat doesn't need an MBean server.A counter implementation that is aware of both primary and delegate metrics belonging to different registries and able to update metrics in multiple registriesA meter implementation that is aware of both primary and delegate metrics belonging to different registries and able to update metrics in multiple registriesA meter implementation that is aware of both primary and delegate metrics belonging to different registries and able to update metrics in multiple registriesA timer implementation that is aware of both primary and delegate metrics belonging to different registries and able to update metrics in multiple registriesASolrMetricReporterthat supports (prefix) filters.Dynamically constructed map of metrics, intentionally different fromMetricSetwhere each metric had to be known in advance and registered separately inMetricRegistry.Helper class for constructing instances ofMetricRegistry.MetricSupplierbased on plugin configuration.DefaultCountersupplier.Default supplier ofHistograminstances, with configurable reservoir.DefaultMetersupplier.Default supplier ofTimerinstances, with configurable clock and reservoir.No-op implementation ofCountersupplier.No-op implementation ofGauge.No-op implementation ofHistogramsupplier.No-op implementation ofMetersupplier.Marker interface for all no-op metrics.No-op implementation ofTimersupplier.This is an extended replacement forFileDescriptorRatioGauge- that class uses reflection and doesn't work under Java 9.ASolrMetricReporterthat has access to itsCoreContainer.Helper class for managing registration ofSolrMetricProducer's andSolrMetricReporter's specific to aSolrCoreinstance.AFilteringSolrMetricReporterthat has access to itsSolrCore.This class represents a metrics context that is delegate aware in that it is aware of multiple metric registries, a primary and a delegate.Wraps meta-data for a metric.This class maintains a repository of namedMetricRegistryinstances, 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.An implementation ofMetricFilterthat selects metrics that match all filters in a list of filters.This is a wrapper forGaugemetrics, which are usually implemented as lambdas that often keep a reference to their parent instance.An implementation ofMetricFilterthat selects metrics that match any filter in a list of filters.An implementation ofMetricFilterthat selects metrics with names that start with one of prefixes.An implementation ofMetricFilterthat selects metrics with names that match regular expression patterns.Potential conflict resolution strategies when attempting to register a new metric that already existsUsed by objects that expose metrics throughSolrMetricManager.Interface for 'pluggable' metric reporters.This class represents a metrics context that ties together components with the same life-cycle and provides convenient access to the metric registry.