mirror of https://github.com/apache/lucene.git
SOLR-10319 SolrCore "instanceDir" metric not visible in JMX.
This commit is contained in:
parent
fb296fd5fc
commit
a3e4f57e1b
|
@ -313,6 +313,8 @@ Bug Fixes
|
|||
* SOLR-10218: The Schema API commands "add-field-type" and "replace-field-type" improperly specify SimilarityFactory params.
|
||||
(Benjamin Deininger, Troy Mohl, Steve Rowe)
|
||||
|
||||
* SOLR-10319: SolrCore "instanceDir" metric not visible in JMX. (ab)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -1134,7 +1134,7 @@ public final class SolrCore implements SolrInfoMBean, SolrMetricProducer, Closea
|
|||
manager.registerGauge(registry, () -> name == null ? "(null)" : name, true, "coreName", Category.CORE.toString());
|
||||
manager.registerGauge(registry, () -> startTime, true, "startTime", Category.CORE.toString());
|
||||
manager.registerGauge(registry, () -> getOpenCount(), true, "refCount", Category.CORE.toString());
|
||||
manager.registerGauge(registry, () -> resourceLoader.getInstancePath(), true, "instanceDir", Category.CORE.toString());
|
||||
manager.registerGauge(registry, () -> resourceLoader.getInstancePath().toString(), true, "instanceDir", Category.CORE.toString());
|
||||
manager.registerGauge(registry, () -> getIndexDir(), true, "indexDir", Category.CORE.toString());
|
||||
manager.registerGauge(registry, () -> getIndexSize(), true, "sizeInBytes", Category.INDEX.toString());
|
||||
manager.registerGauge(registry, () -> NumberUtils.readableSize(getIndexSize()), true, "size", Category.INDEX.toString());
|
||||
|
|
Loading…
Reference in New Issue