Class PrometheusMetricsPlugin

    • Constructor Detail

      • PrometheusMetricsPlugin

        public PrometheusMetricsPlugin()
    • Method Detail

      • isActive

        public boolean isActive()
        Description copied from interface: IConditional
        Should determine if the plugin is active.
        Specified by:
        isActive in interface IConditional
        Returns:
        true if and only if the plugins is active, else false
      • counter

        public void counter​(String name,
                            Map<String,​Object> labels,
                            String namespace,
                            String help,
                            String unit,
                            Double value)
        Description copied from interface: IMetricProcessor
        Process a counter type metric.
        Specified by:
        counter in interface IMetricProcessor
        Parameters:
        name - the name of the metric
        labels - the labels attached to the metric
        namespace - the namespace the metric should be in
        help - the help statement for the metric
        unit - the unit for the metric
        value - the value to post to the metric
      • gauge

        public void gauge​(String name,
                          Map<String,​Object> labels,
                          String namespace,
                          String help,
                          String unit,
                          Double value)
        Description copied from interface: IMetricProcessor
        Process a gauge type metric.
        Specified by:
        gauge in interface IMetricProcessor
        Parameters:
        name - the name of the metric
        labels - the labels attached to the metric
        namespace - the namespace the metric should be in
        help - the help statement for the metric
        unit - the unit for the metric
        value - the value to post to the metric
      • histogram

        public void histogram​(String name,
                              Map<String,​Object> labels,
                              String namespace,
                              String help,
                              String unit,
                              Double value)
        Description copied from interface: IMetricProcessor
        Process a histogram type metric.
        Specified by:
        histogram in interface IMetricProcessor
        Parameters:
        name - the name of the metric
        labels - the labels attached to the metric
        namespace - the namespace the metric should be in
        help - the help statement for the metric
        unit - the unit for the metric
        value - the value to post to the metric
      • summary

        public void summary​(String name,
                            Map<String,​Object> labels,
                            String namespace,
                            String help,
                            String unit,
                            Double value)
        Description copied from interface: IMetricProcessor
        Process a summary type metric.
        Specified by:
        summary in interface IMetricProcessor
        Parameters:
        name - the name of the metric
        labels - the labels attached to the metric
        namespace - the namespace the metric should be in
        help - the help statement for the metric
        unit - the unit for the metric
        value - the value to post to the metric