Class SolrCoreMetricManager

    • Constructor Detail

    • Method Detail

      • afterCoreSetName

        public void afterCoreSetName()
        Make sure that metrics already collected that correspond to the old core name are carried over and will be used under the new core name. This method also reloads reporters so that they use the new core name.
      • registerMetricProducer

        public void registerMetricProducer(String scope,
                                           SolrMetricProducer producer)
        Registers a mapping of name/metric's with the manager's metric registry.
        scope - the scope of the metrics to be registered (e.g. `/admin/ping`)
        producer - producer of metrics to be registered
      • getRegistryName

        public String getRegistryName()
        Retrieves the metric registry name of the manager. In order to make it easier for reporting tools to aggregate metrics from different cores that logically belong to a single collection we convert the core name into a dot-separated hierarchy of: collection name, shard name (with optional split) and replica name.

        For example, when the core name looks like this but it's NOT a SolrCloud collection: my_collection_shard1_1_replica1 then this will be used as the registry name (plus the required solr.core prefix). However, if this is a SolrCloud collection my_collection then the registry name will become solr.core.my_collection.shard1_1.replica1.

        the metric registry name of the manager.