Package com.intergral.deep.plugin
Class PrometheusMetricsPlugin
- java.lang.Object
-
- com.intergral.deep.plugin.PrometheusMetricsPlugin
-
- All Implemented Interfaces:
com.intergral.deep.agent.api.plugin.IMetricProcessor
,com.intergral.deep.agent.api.spi.IConditional
,com.intergral.deep.agent.api.spi.IDeepPlugin
,com.intergral.deep.agent.api.spi.Ordered
public class PrometheusMetricsPlugin extends Object implements com.intergral.deep.agent.api.spi.IDeepPlugin, com.intergral.deep.agent.api.spi.IConditional, com.intergral.deep.agent.api.plugin.IMetricProcessor, com.intergral.deep.agent.api.spi.Ordered
This plugin provides the ability to post tracepoint generated metric to prometheus.This plugin is loaded by the Deep module and not the agent. As we need to be loaded in the app class path and not the boot class path.
-
-
Constructor Summary
Constructors Constructor Description PrometheusMetricsPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
counter(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
void
gauge(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
void
histogram(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
boolean
isActive()
void
summary(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
-
-
-
Method Detail
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfacecom.intergral.deep.agent.api.spi.IConditional
-
counter
public void counter(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
- Specified by:
counter
in interfacecom.intergral.deep.agent.api.plugin.IMetricProcessor
-
gauge
public void gauge(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
- Specified by:
gauge
in interfacecom.intergral.deep.agent.api.plugin.IMetricProcessor
-
histogram
public void histogram(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
- Specified by:
histogram
in interfacecom.intergral.deep.agent.api.plugin.IMetricProcessor
-
-