Interface IMetricProcessor
-
- All Known Implementing Classes:
OtelPlugin,PrometheusMetricsPlugin
public interface IMetricProcessorThis type defines a processor for metrics. This type can be added to plugins to allow metric generated by tracepoints to be attached to various metric engines.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcounter(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)Process a counter type metric.voidgauge(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)Process a gauge type metric.voidhistogram(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)Process a histogram type metric.voidsummary(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)Process a summary type metric.
-
-
-
Method Detail
-
counter
void counter(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
Process a counter type metric.- Parameters:
name- the name of the metriclabels- the labels attached to the metricnamespace- the namespace the metric should be inhelp- the help statement for the metricunit- the unit for the metricvalue- the value to post to the metric
-
gauge
void gauge(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
Process a gauge type metric.- Parameters:
name- the name of the metriclabels- the labels attached to the metricnamespace- the namespace the metric should be inhelp- the help statement for the metricunit- the unit for the metricvalue- the value to post to the metric
-
histogram
void histogram(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
Process a histogram type metric.- Parameters:
name- the name of the metriclabels- the labels attached to the metricnamespace- the namespace the metric should be inhelp- the help statement for the metricunit- the unit for the metricvalue- the value to post to the metric
-
summary
void summary(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
Process a summary type metric.- Parameters:
name- the name of the metriclabels- the labels attached to the metricnamespace- the namespace the metric should be inhelp- the help statement for the metricunit- the unit for the metricvalue- the value to post to the metric
-
-