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 |
core
filters
enabled, 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, init
setFilter, setFilter
getPeriod, getPluginInfo, setEnabled, setPeriod, toString
public SolrShardReporter(SolrMetricManager metricManager, String registryName)
metricManager
- metric managerregistryName
- registry to use, one of registries managed by
SolrMetricManager
public void setHandler(String handler)
protected void doInit()
SolrMetricReporter
doInit
in class SolrMetricReporter
protected com.codahale.metrics.MetricFilter newMetricFilter()
FilteringSolrMetricReporter
newMetricFilter
in class FilteringSolrMetricReporter
protected void validate() throws IllegalStateException
SolrMetricReporter
validate
in class SolrMetricReporter
IllegalStateException
- if the reporter is not properly configuredpublic void close() throws IOException
IOException
public void init(PluginInfo pluginInfo, SolrCore core)
init
in class SolrCoreReporter
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.