public class SolrReporter
extends com.codahale.metrics.ScheduledReporter
ScheduledReporter
that reports metrics from selected registries and sends
them periodically as update requests to a selected Solr collection and to a configured handler.Modifier and Type | Class and Description |
---|---|
static class |
SolrReporter.Builder
Builder for the
SolrReporter class. |
static class |
SolrReporter.Report
Specification of what registries and what metrics to send.
|
Modifier and Type | Field and Description |
---|---|
static String |
GROUP_ID |
static String |
LABEL_ID |
static String |
REGISTRY_ID |
static String |
REPORTER_ID |
Constructor and Description |
---|
SolrReporter(org.apache.http.client.HttpClient httpClient,
Supplier<String> urlProvider,
SolrMetricManager metricManager,
List<SolrReporter.Report> metrics,
String handler,
String reporterId,
TimeUnit rateUnit,
TimeUnit durationUnit,
SolrParams params,
boolean skipHistograms,
boolean skipAggregateValues,
boolean cloudClient,
boolean compact) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
report() |
void |
report(SortedMap<String,com.codahale.metrics.Gauge> gauges,
SortedMap<String,com.codahale.metrics.Counter> counters,
SortedMap<String,com.codahale.metrics.Histogram> histograms,
SortedMap<String,com.codahale.metrics.Meter> meters,
SortedMap<String,com.codahale.metrics.Timer> timers) |
public static final String REGISTRY_ID
public static final String REPORTER_ID
public static final String GROUP_ID
public static final String LABEL_ID
public SolrReporter(org.apache.http.client.HttpClient httpClient, Supplier<String> urlProvider, SolrMetricManager metricManager, List<SolrReporter.Report> metrics, String handler, String reporterId, TimeUnit rateUnit, TimeUnit durationUnit, SolrParams params, boolean skipHistograms, boolean skipAggregateValues, boolean cloudClient, boolean compact)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class com.codahale.metrics.ScheduledReporter
public void report()
report
in class com.codahale.metrics.ScheduledReporter
public void report(SortedMap<String,com.codahale.metrics.Gauge> gauges, SortedMap<String,com.codahale.metrics.Counter> counters, SortedMap<String,com.codahale.metrics.Histogram> histograms, SortedMap<String,com.codahale.metrics.Meter> meters, SortedMap<String,com.codahale.metrics.Timer> timers)
report
in class com.codahale.metrics.ScheduledReporter
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.