Class TextFormat
- java.lang.Object
-
- io.prometheus.client.exporter.common.TextFormat
-
public class TextFormat extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONTENT_TYPE_004
Content-type for text version 0.0.4.
-
Constructor Summary
Constructors Constructor Description TextFormat()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
typeString(Collector.Type t)
static void
write004(java.io.Writer writer, java.util.Enumeration<Collector.MetricFamilySamples> mfs)
Write out the text version 0.0.4 of the given MetricFamilySamples.private static void
writeEscapedHelp(java.io.Writer writer, java.lang.String s)
private static void
writeEscapedLabelValue(java.io.Writer writer, java.lang.String s)
-
-
-
Field Detail
-
CONTENT_TYPE_004
public static final java.lang.String CONTENT_TYPE_004
Content-type for text version 0.0.4.- See Also:
- Constant Field Values
-
-
Method Detail
-
write004
public static void write004(java.io.Writer writer, java.util.Enumeration<Collector.MetricFamilySamples> mfs) throws java.io.IOException
Write out the text version 0.0.4 of the given MetricFamilySamples.- Throws:
java.io.IOException
-
writeEscapedHelp
private static void writeEscapedHelp(java.io.Writer writer, java.lang.String s) throws java.io.IOException
- Throws:
java.io.IOException
-
writeEscapedLabelValue
private static void writeEscapedLabelValue(java.io.Writer writer, java.lang.String s) throws java.io.IOException
- Throws:
java.io.IOException
-
typeString
private static java.lang.String typeString(Collector.Type t)
-
-