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 voidcounter(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)voidgauge(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)voidhistogram(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)booleanisActive()voidsummary(String name, Map<String,Object> labels, String namespace, String help, String unit, Double value)
-
-
-
Method Detail
-
isActive
public boolean isActive()
- Specified by:
isActivein 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:
counterin 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:
gaugein 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:
histogramin interfacecom.intergral.deep.agent.api.plugin.IMetricProcessor
-
-