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 aMetricSnapshots 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 inherited from class org.apache.solr.metrics.prometheus.SolrPrometheusFormatter
metricCounters, metricGauges, metricSummaries
-
-
Constructor Summary
Constructors Constructor Description SolrPrometheusCoreFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrMetriccategorizeMetric(com.codahale.metrics.Metric dropwizardMetric, String metricName)CategorizeMetricbased on the metric namevoidexportDropwizardMetric(com.codahale.metrics.Metric dropwizardMetric, String metricName)ExportMetrictoMetricSnapshotand register the Snapshot-
Methods inherited from class org.apache.solr.metrics.prometheus.SolrPrometheusFormatter
collect, collectCounterDatapoint, collectGaugeDatapoint, collectSummaryDatapoint, createCounterDatapoint, createGaugeDatapoint, exportCounter, exportGauge, exportMeter, exportTimer, exportTimerCount
-
-
-
-
Method Detail
-
exportDropwizardMetric
public void exportDropwizardMetric(com.codahale.metrics.Metric dropwizardMetric, String metricName)Description copied from class:SolrPrometheusFormatterExportMetrictoMetricSnapshotand register the Snapshot- Specified by:
exportDropwizardMetricin classSolrPrometheusFormatter- Parameters:
dropwizardMetric- theMetricto be exportedmetricName- Dropwizard metric name
-
categorizeMetric
public SolrMetric categorizeMetric(com.codahale.metrics.Metric dropwizardMetric, String metricName)
Description copied from class:SolrPrometheusFormatterCategorizeMetricbased on the metric name- Specified by:
categorizeMetricin classSolrPrometheusFormatter- Parameters:
dropwizardMetric- theMetricto be exportedmetricName- Dropwizard metric name
-
-