Class SolrShardReporter

  • All Implemented Interfaces:
    Closeable, AutoCloseable, PluginInfoInitialized

    public class SolrShardReporter
    extends SolrCoreReporter
    This class reports selected metrics from replicas to shard leader.

    The following configuration properties are supported:

    • handler - (optional str) handler path where reports are sent. Default is MetricsCollectorHandler.HANDLER_PATH.
    • period - (optional int) how often reports are sent, in seconds. Default is 60. Setting this to 0 disables the reporter.
    • filter - (optional multiple str) regex expression(s) matching selected metrics to be reported.
    NOTE: this reporter uses predefined "shard" group, and it's always created even if explicit configuration is missing. Default configuration uses filters defined in DEFAULT_FILTERS.

    Example configuration:

        <reporter name="test" group="shard" class="solr.SolrShardReporter">
          <int name="period">11</int>
          <str name="filter">UPDATE\./update/.*requests</str>
          <str name="filter">QUERY\./select.*requests</str>
        </reporter>