Class PrometheusTextFormat


  • public class PrometheusTextFormat
    extends java.lang.Object
    Provide Prometheus text format for a collection of metrics, without the HELP string
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void write004​(java.io.Writer writer, java.util.Enumeration<io.prometheus.client.Collector.MetricFamilySamples> mfs)
      Write out the text version 0.0.4 of the given MetricFamilySamples.
      • Methods inherited from class java.lang.Object

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

      • PrometheusTextFormat

        public PrometheusTextFormat()
    • Method Detail

      • write004

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