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