Class 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 Detail

      • PrometheusMetricsPlugin

        public PrometheusMetricsPlugin()
    • Method Detail

      • isActive

        public boolean isActive()
        Specified by:
        isActive in interface com.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 interface com.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 interface com.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 interface com.intergral.deep.agent.api.plugin.IMetricProcessor
      • summary

        public void summary​(String name,
                            Map<String,​Object> labels,
                            String namespace,
                            String help,
                            String unit,
                            Double value)
        Specified by:
        summary in interface com.intergral.deep.agent.api.plugin.IMetricProcessor