Class TextFormat
java.lang.Object
io.prometheus.client.exporter.common.TextFormat
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
static void
write004
(Writer writer, Enumeration<Collector.MetricFamilySamples> mfs) Write out the text version 0.0.4 of the given MetricFamilySamples.private static void
writeEscapedHelp
(Writer writer, String s) private static void
writeEscapedLabelValue
(Writer writer, String s)
-
Field Details
-
CONTENT_TYPE_004
Content-type for text version 0.0.4.- See Also:
-
-
Constructor Details
-
TextFormat
public TextFormat()
-
-
Method Details
-
write004
public static void write004(Writer writer, Enumeration<Collector.MetricFamilySamples> mfs) throws IOException Write out the text version 0.0.4 of the given MetricFamilySamples.- Throws:
IOException
-
writeEscapedHelp
- Throws:
IOException
-
writeEscapedLabelValue
- Throws:
IOException
-
typeString
-