mirror of https://github.com/apache/lucene.git
SOLR-13702: Some components register twice their metric names (#834)
This commit is contained in:
parent
152756fcbd
commit
0aa3654802
|
@ -131,6 +131,8 @@ Improvements
|
|||
|
||||
* SOLR-13677: All Metrics Gauges should be unregistered by the objects that registered them (noble)
|
||||
|
||||
* SOLR-13702: Some components register twice their metric names (janhoy)
|
||||
|
||||
Bug Fixes
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -257,7 +257,6 @@ public abstract class AuditLoggerPlugin implements Closeable, Runnable, SolrInfo
|
|||
queuedTime = manager.timer(this, registryName, "queuedTime", getCategory().toString(), scope, className);
|
||||
}
|
||||
manager.registerGauge(this, registryName, () -> async, "async", true, "async", getCategory().toString(), scope, className);
|
||||
metricNames.addAll(Arrays.asList("errors", "logged", "requestTimes", "totalTime", "queueCapacity", "queueSize", "async"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -157,8 +157,6 @@ public abstract class AuthenticationPlugin implements SolrInfoBean, SolrMetricPr
|
|||
numMissingCredentials = this.metrics.counter(this, "failMissingCredentials",getCategory().toString());
|
||||
requestTimes = this.metrics.timer(this,"requestTimes", getCategory().toString());
|
||||
totalTime = this.metrics.counter(this,"totalTime", getCategory().toString());
|
||||
metricNames.addAll(Arrays.asList("errors", "requests", "authenticated", "passThrough",
|
||||
"failWrongCredentials", "failMissingCredentials", "requestTimes", "totalTime"));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue