public class SolrShardReporter extends SolrCoreReporter
The following configuration properties are supported:
MetricsCollectorHandler.HANDLER_PATH.DEFAULT_FILTERS.
Example configuration:
<reporter name="test" group="shard" class="solr.SolrShardReporter">
<int name="period">11</int>
<str name="filter">UPDATE\./update/.*requests</str>
<str name="filter">QUERY\./select.*requests</str>
</reporter>
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
DEFAULT_FILTERS |
corefiltersenabled, metricManager, period, pluginInfo, registryName| Constructor and Description |
|---|
SolrShardReporter(SolrMetricManager metricManager,
String registryName)
Create a reporter for metrics managed in a named registry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
doInit()
Reporter initialization implementation.
|
void |
init(PluginInfo pluginInfo,
SolrCore core) |
protected com.codahale.metrics.MetricFilter |
newMetricFilter()
Report only metrics with names matching any of the prefix filters.
|
void |
setHandler(String handler) |
protected void |
validate()
Validates that the reporter has been correctly configured.
|
getCore, initsetFilter, setFiltergetPeriod, getPluginInfo, setEnabled, setPeriod, toStringpublic SolrShardReporter(SolrMetricManager metricManager, String registryName)
metricManager - metric managerregistryName - registry to use, one of registries managed by
SolrMetricManagerpublic void setHandler(String handler)
protected void doInit()
SolrMetricReporterdoInit in class SolrMetricReporterprotected com.codahale.metrics.MetricFilter newMetricFilter()
FilteringSolrMetricReporternewMetricFilter in class FilteringSolrMetricReporterprotected void validate()
throws IllegalStateException
SolrMetricReportervalidate in class SolrMetricReporterIllegalStateException - if the reporter is not properly configuredpublic void close()
throws IOException
IOExceptionpublic void init(PluginInfo pluginInfo, SolrCore core)
init in class SolrCoreReporterCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.