Class MetricsCollectorHandler

  • All Implemented Interfaces:
    AutoCloseable, ApiSupport, SolrInfoBean, NestedRequestHandler, SolrMetricProducer, SolrRequestHandler, PermissionNameProvider

    public class MetricsCollectorHandler
    extends RequestHandlerBase
    Handler to collect and aggregate metric reports. Each report indicates the target registry where metrics values should be collected and aggregated. Metrics with the same names are aggregated using AggregateMetric instances, which track the source of updates and their count, as well as providing simple statistics over collected values.

    Each report consists of SolrInputDocument-s that are expected to contain the following fields:

    Remaining fields are assumed to be single-valued, and to contain metric attributes and their values. Example:
       <doc>
         <field name="_group_">solr.core.collection1.shard1.leader</field>
         <field name="_reporter_">core_node3</field>
         <field name="metric">INDEX.merge.errors</field>
         <field name="value">0</field>
       </doc>