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/03/14 11:48:41 UTC
[jira] [Created] (SOLR-10280) Document the "compact" format of
/admin/metrics
Andrzej Bialecki created SOLR-10280:
----------------------------------------
Summary: 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
Priority: Minor
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org