Class SolrPrometheusCoreFormatter
- java.lang.Object
-
- org.apache.solr.metrics.prometheus.SolrPrometheusFormatter
-
- org.apache.solr.metrics.prometheus.core.SolrPrometheusCoreFormatter
-
- All Implemented Interfaces:
PrometheusCoreFormatterInfo
public class SolrPrometheusCoreFormatter extends SolrPrometheusFormatter implements PrometheusCoreFormatterInfo
This class maintains aMetricSnapshot
s exported from solr.coreMetricRegistry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.metrics.prometheus.core.PrometheusCoreFormatterInfo
PrometheusCoreFormatterInfo.CoreCategory
-
-
Field Summary
Fields Modifier and Type Field Description boolean
cloudMode
String
coreName
-
Fields inherited from class org.apache.solr.metrics.prometheus.SolrPrometheusFormatter
metricCounters, metricGauges
-
Fields inherited from interface org.apache.solr.metrics.prometheus.core.PrometheusCoreFormatterInfo
CLOUD_CORE_PATTERN
-
-
Constructor Summary
Constructors Constructor Description SolrPrometheusCoreFormatter(String coreName, boolean cloudMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrMetric
categorizeMetric(com.codahale.metrics.Metric dropwizardMetric, String metricName)
CategorizeMetric
based on the metric namevoid
exportDropwizardMetric(com.codahale.metrics.Metric dropwizardMetric, String metricName)
ExportMetric
toMetricSnapshot
and register the Snapshot-
Methods inherited from class org.apache.solr.metrics.prometheus.SolrPrometheusFormatter
collect, collectCounterDatapoint, collectGaugeDatapoint, createCounterDatapoint, createGaugeDatapoint, exportCounter, exportGauge, exportMeter, exportTimer, exportTimerCount
-
-
-
-
Field Detail
-
coreName
public final String coreName
-
cloudMode
public final boolean cloudMode
-
-
Constructor Detail
-
SolrPrometheusCoreFormatter
public SolrPrometheusCoreFormatter(String coreName, boolean cloudMode)
-
-
Method Detail
-
exportDropwizardMetric
public void exportDropwizardMetric(com.codahale.metrics.Metric dropwizardMetric, String metricName)
Description copied from class:SolrPrometheusFormatter
ExportMetric
toMetricSnapshot
and register the Snapshot- Specified by:
exportDropwizardMetric
in classSolrPrometheusFormatter
- Parameters:
dropwizardMetric
- theMetric
to be exportedmetricName
- Dropwizard metric name
-
categorizeMetric
public SolrMetric categorizeMetric(com.codahale.metrics.Metric dropwizardMetric, String metricName)
Description copied from class:SolrPrometheusFormatter
CategorizeMetric
based on the metric name- Specified by:
categorizeMetric
in classSolrPrometheusFormatter
- Parameters:
dropwizardMetric
- theMetric
to be exportedmetricName
- Dropwizard metric name
-
-