public class SolrClusterReporter extends SolrCoreContainerReporter
Overseer.
The following configuration properties are supported:
MetricsCollectorHandler.HANDLER_PATH.SolrMetricManager.registryNames(String...)),
may contain capture groups.registry patternregistry patternDEFAULT_REPORTS.
Example configuration:
<reporter name="test" group="cluster" class="solr.SolrClusterReporter">
<str name="handler">/admin/metrics/collector</str>
<int name="period">11</int>
<lst name="report">
<str name="group">overseer</str>
<str name="label">jvm</str>
<str name="registry">solr\.jvm</str>
<str name="filter">memory\.total\..*</str>
<str name="filter">memory\.heap\..*</str>
<str name="filter">os\.SystemLoadAverage</str>
<str name="filter">threads\.count</str>
</lst>
<lst name="report">
<str name="group">overseer</str>
<str name="label">leader.$1</str>
<str name="registry">solr\.core\.(.*)\.leader</str>
<str name="filter">UPDATE\./update/.*</str>
</lst>
</reporter>
| Modifier and Type | Field and Description |
|---|---|
static String |
CLUSTER_GROUP |
static List<SolrReporter.Report> |
DEFAULT_REPORTS |
coreContainerenabled, metricManager, period, pluginInfo, registryName| Constructor and Description |
|---|
SolrClusterReporter(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,
CoreContainer cc) |
void |
setHandler(String handler) |
void |
setReport(List<Map> reportConfig) |
void |
setReport(Map map) |
protected void |
validate()
Validates that the reporter has been correctly configured.
|
getCoreContainer, initgetPeriod, getPluginInfo, setEnabled, setPeriod, toStringpublic static final String CLUSTER_GROUP
public static final List<SolrReporter.Report> DEFAULT_REPORTS
public SolrClusterReporter(SolrMetricManager metricManager, String registryName)
metricManager - metric managerregistryName - this is ignoredpublic void setHandler(String handler)
public void setReport(Map map)
protected void doInit()
SolrMetricReporterdoInit in class SolrMetricReporterprotected void validate()
throws IllegalStateException
SolrMetricReportervalidate in class SolrMetricReporterIllegalStateException - if the reporter is not properly configuredpublic void close()
throws IOException
IOExceptionpublic void init(PluginInfo pluginInfo, CoreContainer cc)
init in class SolrCoreContainerReporterCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.