Class PrometheusMetricsGeneratorUtils


  • public class PrometheusMetricsGeneratorUtils
    extends java.lang.Object
    Generate metrics in a text format suitable to be consumed by Prometheus. Format specification can be found at {@link https://prometheus.io/docs/instrumenting/exposition_formats/}
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void generate​(java.lang.String cluster, java.io.OutputStream out, java.util.List<PrometheusRawMetricsProvider> metricsProviders)  
      static void generateSystemMetrics​(org.apache.pulsar.common.util.SimpleTextOutputStream stream, java.lang.String cluster)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PrometheusMetricsGeneratorUtils

        public PrometheusMetricsGeneratorUtils()
    • Method Detail

      • generate

        public static void generate​(java.lang.String cluster,
                                    java.io.OutputStream out,
                                    java.util.List<PrometheusRawMetricsProvider> metricsProviders)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • generateSystemMetrics

        public static void generateSystemMetrics​(org.apache.pulsar.common.util.SimpleTextOutputStream stream,
                                                 java.lang.String cluster)