Class SolrPrometheusJvmFormatter
- java.lang.Object
-
- org.apache.solr.metrics.prometheus.SolrPrometheusFormatter
-
- org.apache.solr.metrics.prometheus.jvm.SolrPrometheusJvmFormatter
-
- All Implemented Interfaces:
PrometheusJvmFormatterInfo
public class SolrPrometheusJvmFormatter extends SolrPrometheusFormatter implements PrometheusJvmFormatterInfo
This class maintains aMetricSnapshot
s exported from solr.jvmMetricRegistry
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.metrics.prometheus.jvm.PrometheusJvmFormatterInfo
PrometheusJvmFormatterInfo.JvmCategory
-
-
Field Summary
-
Fields inherited from class org.apache.solr.metrics.prometheus.SolrPrometheusFormatter
metricCounters, metricGauges
-
-
Constructor Summary
Constructors Constructor Description SolrPrometheusJvmFormatter()
-
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
-
-
-
-
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
-
-