[ 
https://issues.apache.org/jira/browse/SOLR-10418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrzej Bialecki  updated SOLR-10418:
-------------------------------------
    Attachment: SOLR-10418.patch

Updated patch that adds "property" filtering in order to select only some of 
the properties of complex metrics (eg. CACHE, system.properties, etc). Multiple 
"property" parameters can be supplied.

This is a much cleaner approach that the previous patch, even though it 
requires that user knows that selected metrics have multiple properties.

This patch also implements the "hiddenSysProps" configuration to prevent from 
returning sensitive system properties.

Here's an example request and output:
{code}
http://localhost:8983/solr/admin/metrics?group=core&prefix=CACHE.searcher&property=inserts&property=size&compact=true&wt=json

{
  "responseHeader": {
    "status": 0,
    "QTime": 1
  },
  "metrics": {
    "solr.core.techproducts": {
      "CACHE.searcher.QUERY_DOC_FV": {
        "size": 0,
        "inserts": 0
      },
      "CACHE.searcher.documentCache": {
        "size": 0,
        "inserts": 0
      },
      "CACHE.searcher.fieldValueCache": {
        "size": 0,
        "inserts": 0
      },
      "CACHE.searcher.filterCache": {
        "size": 0,
        "inserts": 0
      },
      "CACHE.searcher.perSegFilter": {
        "size": 0,
        "inserts": 0
      },
      "CACHE.searcher.queryResultCache": {
        "size": 0,
        "inserts": 0
      }
    }
  }
}
{code}
{code}
http://localhost:8983/solr/admin/metrics?group=jvm&prefix=system&property=os.name&property=os.arch&compact=true&wt=json

{
  "responseHeader": {
    "status": 0,
    "QTime": 0
  },
  "metrics": {
    "solr.jvm": {
      "system.properties": {
        "os.arch": "x86_64",
        "os.name": "Mac OS X"
      }
    }
  }
}
{code}

> metrics should return JVM system properties
> -------------------------------------------
>
>                 Key: SOLR-10418
>                 URL: https://issues.apache.org/jira/browse/SOLR-10418
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: metrics
>            Reporter: Noble Paul
>            Assignee: Andrzej Bialecki 
>         Attachments: SOLR-10418.patch, SOLR-10418.patch, SOLR-10418.patch, 
> SOLR-10418.patch
>
>
> We need to stop using the custom solution used in rules and start using 
> metrics for everything



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to