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 |
coreContainer
enabled, 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, init
getPeriod, getPluginInfo, setEnabled, setPeriod, toString
public 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()
SolrMetricReporter
doInit
in class SolrMetricReporter
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, CoreContainer cc)
init
in class SolrCoreContainerReporter
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.