Class PrometheusTextFormat

java.lang.Object
org.apache.pulsar.functions.instance.stats.PrometheusTextFormat

public class PrometheusTextFormat extends Object
Provide Prometheus text format for a collection of metrics, without the HELP string.
  • Constructor Details

    • PrometheusTextFormat

      public PrometheusTextFormat()
  • Method Details

    • write004

      public static void write004(Writer writer, Enumeration<io.prometheus.client.Collector.MetricFamilySamples> mfs) throws IOException
      Write out the text version 0.0.4 of the given MetricFamilySamples.
      Throws:
      IOException