You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/08/02 15:47:00 UTC

[jira] [Commented] (SOLR-15564) Improve filtering expressions in /admin/metrics

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

ASF subversion and git services commented on SOLR-15564:
--------------------------------------------------------

Commit 56cc23021df974230e8fe62c8af5f95a55fec34f in solr's branch refs/heads/main from Andrzej Bialecki
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=56cc230 ]

SOLR-15564: Improve filtering expressions in /admin/metrics.


> Improve filtering expressions in /admin/metrics
> -----------------------------------------------
>
>                 Key: SOLR-15564
>                 URL: https://issues.apache.org/jira/browse/SOLR-15564
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: metrics
>            Reporter: Andrzej Bialecki
>            Assignee: Andrzej Bialecki
>            Priority: Major
>             Fix For: 8.10
>
>         Attachments: SOLR-15564.patch
>
>
> There are currently several ways to filter what metrics should be returned by /admin/metrics but they have one important limitation: all types of filtering criteria (group, type, prefix, regex, key) use implicit OR, so it's only ever possible to broaden the filters but not to narrow them down.
> This issue came up while I was reviewing the default Prometheus exporter config and I noticed that it pulls ALL metrics. This is extremely wasteful and puts unnecessary load on the nodes, especially since only some of the metrics are then used, either by the exporter itself or by the default dashboard. In addition to that, the exporter needs to build an object tree from all these metrics in order to apply the export rules, which leads to excessive memory / cpu consumption in the reporter process.
> We should come up with a way to make these filters more expressive so that it's possible e.g. to select only some metrics from a particular registry.
> The simplest way to implement this would be to extend the syntax of the {{key}} parameter to support regex expressions in the parts of the key that specify the metric name and the property name.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org