Interface IMetricProcessor
-
public interface IMetricProcessor
This 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 void
counter(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
Process a counter type metric.void
gauge(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
Process a gauge type metric.void
histogram(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
Process a histogram type metric.void
summary(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
-
-