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

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

Commit a14b6f70b6b7628f7507513455240e9ab382f25a in lucene-solr's branch 
refs/heads/branch_6x from [~ctargett]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=a14b6f7 ]

SOLR-10280: document "compact" format of metrics response


> Document the "compact" format of /admin/metrics
> -----------------------------------------------
>
>                 Key: SOLR-10280
>                 URL: https://issues.apache.org/jira/browse/SOLR-10280
>             Project: Solr
>          Issue Type: Task
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: documentation
>    Affects Versions: 6.5, master (7.0)
>            Reporter: Andrzej Bialecki 
>            Assignee: Cassandra Targett
>            Priority: Minor
>             Fix For: 6.6, master (7.0)
>
>
> SOLR-10247 introduced a new compact format for the output of 
> {{/admin/metrics}} handler. The new format is turned on by a request 
> parameter {{compact=true}} and the default value is {{false}}.
> Example of regular format in XML:
> {code}
> http://localhost:8983/solr/admin/metrics?registry=solr.core.gettingstarted&prefix=CORE
> ...
>             <lst name="CORE.aliases">
>                 <arr name="value">
>                     <str>gettingstarted</str>
>                 </arr>
>             </lst>
>             <lst name="CORE.coreName">
>                 <str name="value">gettingstarted</str>
>             </lst>
>             <lst name="CORE.indexDir">
>                 <str 
> name="value">/Users/ab/work/lucene/lucene-solr/solr/example/schemaless/solr/gettingstarted/data/index/</str>
>             </lst>
>             <lst name="CORE.instanceDir">
>                 <str 
> name="value">/Users/ab/work/lucene/lucene-solr/solr/example/schemaless/solr/gettingstarted</str>
>             </lst>
>             <lst name="CORE.refCount">
>                 <int name="value">1</int>
>             </lst>
>             <lst name="CORE.startTime">
>                 <date name="value">2017-03-14T11:43:23.822Z</date>
>             </lst>
> ...
> {code}
> Example of compact format in XML:
> {code}
> ...
>             <arr name="CORE.aliases">
>                 <str>gettingstarted</str>
>             </arr>
>             <str name="CORE.coreName">gettingstarted</str>
>             <str 
> name="CORE.indexDir">/Users/ab/work/lucene/lucene-solr/solr/example/schemaless/solr/gettingstarted/data/index/</str>
>             <str 
> name="CORE.instanceDir">/Users/ab/work/lucene/lucene-solr/solr/example/schemaless/solr/gettingstarted</str>
>             <int name="CORE.refCount">1</int>
>             <date name="CORE.startTime">2017-03-14T11:43:23.822Z</date>
> ...
> {code}
> Example of regular format in JSON:
> {code}
> http://localhost:8983/solr/admin/metrics?registry=solr.core.gettingstarted&prefix=CORE&wt=json
> ...
>   "metrics": [
>     "solr.core.gettingstarted",
>     {
>       "CORE.aliases": {
>         "value": [
>           "gettingstarted"
>         ]
>       },
>       "CORE.coreName": {
>         "value": "gettingstarted"
>       },
>       "CORE.indexDir": {
>         "value": 
> "/Users/ab/work/lucene/lucene-solr/solr/example/schemaless/solr/gettingstarted/data/index/"
>       },
>       "CORE.instanceDir": {
>         "value": 
> "/Users/ab/work/lucene/lucene-solr/solr/example/schemaless/solr/gettingstarted"
>       },
>       "CORE.refCount": {
>         "value": 1
>       },
>       "CORE.startTime": {
>         "value": "2017-03-14T11:43:23.822Z"
>       }
>     }
>   ]
> ...
> {code}
> Example of compact format in JSON:
> {code}
> http://localhost:8983/solr/admin/metrics?registry=solr.core.gettingstarted&compact=true&prefix=CORE&wt=json
> ...
>   "metrics": [
>     "solr.core.gettingstarted",
>     {
>       "CORE.aliases": [
>         "gettingstarted"
>       ],
>       "CORE.coreName": "gettingstarted",
>       "CORE.indexDir": 
> "/Users/ab/work/lucene/lucene-solr/solr/example/schemaless/solr/gettingstarted/data/index/",
>       "CORE.instanceDir": 
> "/Users/ab/work/lucene/lucene-solr/solr/example/schemaless/solr/gettingstarted",
>       "CORE.refCount": 1,
>       "CORE.startTime": "2017-03-14T11:43:23.822Z"
>     }
>   ]
> ...
> {code}



--
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