|
14 | 14 | * limitations under the License. |
15 | 15 | */ |
16 | 16 |
|
17 | | -def beanSolrCoreSearcherNumDocs = otel.mbean("solr:dom1=core,dom2=*,category=SEARCHER,scope=searcher,name=numDocs") |
| 17 | +def beanSolrCoreSearcherNumDocs = otel.mbeans("solr:dom1=core,dom2=*,category=SEARCHER,scope=searcher,name=numDocs") |
18 | 18 | otel.instrument(beanSolrCoreSearcherNumDocs, "solr.document.count", "The total number of indexed documents.", "{documents}", |
19 | 19 | ["core" : { mbean -> mbean.name().getKeyProperty("dom2") }], |
20 | 20 | "Value", otel.&longUpDownCounterCallback) |
21 | 21 |
|
22 | | -def beanSolrCoreIndexSize = otel.mbean("solr:dom1=core,dom2=*,category=INDEX,name=sizeInBytes") |
| 22 | +def beanSolrCoreIndexSize = otel.mbeans("solr:dom1=core,dom2=*,category=INDEX,name=sizeInBytes") |
23 | 23 | otel.instrument(beanSolrCoreIndexSize, "solr.index.size", "The total index size.", "by", |
24 | 24 | ["core" : { mbean -> mbean.name().getKeyProperty("dom2") }], |
25 | 25 | "Value", otel.&longUpDownCounterCallback) |
@@ -58,7 +58,7 @@ otel.instrument(beanSolrCoreTimeouts, "solr.request.timeout.count", "The number |
58 | 58 | "handler" : { mbean -> mbean.name().getKeyProperty("scope") }], |
59 | 59 | "Count", otel.&longCounterCallback) |
60 | 60 |
|
61 | | -def beanSolrCoreQueryResultsCache = otel.mbean("solr:dom1=core,dom2=*,category=CACHE,scope=*,name=queryResultCache") |
| 61 | +def beanSolrCoreQueryResultsCache = otel.mbeans("solr:dom1=core,dom2=*,category=CACHE,scope=*,name=queryResultCache") |
62 | 62 | otel.instrument(beanSolrCoreQueryResultsCache, "solr.cache.eviction.count", "The number of evictions from a cache.", "{evictions}", |
63 | 63 | ["core" : { mbean -> mbean.name().getKeyProperty("dom2") }, |
64 | 64 | "cache" : { mbean -> mbean.name().getKeyProperty("scope") }], |
|
0 commit comments