You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2017/01/13 12:09:26 UTC

[jira] [Commented] (SOLR-9960) MetricsHandler should support multiple prefixes.

    [ https://issues.apache.org/jira/browse/SOLR-9960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15821702#comment-15821702 ] 

Andrzej Bialecki  commented on SOLR-9960:
-----------------------------------------

Patch that implements the change. Parameters "prefix" and "registry" can be used as multi-valued or comma-separated list (like the "group") to indicate the multiple prefixes to match (logical OR) or multiple registry prefixes to match. For example:
{code}
registry=solr.core,solr.node
{code}
selects all registries for all cores, and a node registry, whereas these parameters:
{code}
registry=solr.core.collection1&prefix=ADMIN,UPDATE
{code}
selects metrics from all shards and replicas belonging to "collection1", but only for metrics with names starting with these two prefixes.

> MetricsHandler should support multiple prefixes.
> ------------------------------------------------
>
>                 Key: SOLR-9960
>                 URL: https://issues.apache.org/jira/browse/SOLR-9960
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: metrics
>    Affects Versions: master (7.0), 6.4
>            Reporter: Andrzej Bialecki 
>            Assignee: Andrzej Bialecki 
>            Priority: Minor
>             Fix For: master (7.0), 6.4
>
>         Attachments: SOLR-9960.patch
>
>
> Some consumers of the {{/admin/metrics}} API need to retrieve only a number of specific metrics they are interested in, which don't share the same prefix. Additionally, selecting by "group" or "type" is insufficient when users need to retrieve metrics for a specific collection (all collections handled by a node belong to the same group "core").
> Concrete examples of this kind of use are in SOLR-9857 and SOLR-9858.
> The modification needed to support this in {{MetricsHandler}} is simple:
> * support multiple "prefix" parameters
> * support also "registryPrefix" parameter as an alternative to "group".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org