Class PrometheusTextFormatWriter
Object
PrometheusTextFormatWriter
- All Implemented Interfaces:
ExpositionFormatWriter
Write the Prometheus text format. This is the default if you view a Prometheus endpoint with your
Web browser.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
write
(OutputStream out, MetricSnapshots metricSnapshots) Text formats use UTF-8 encoding.void
writeCreated
(OutputStreamWriter writer, MetricSnapshot snapshot)
-
Field Details
-
CONTENT_TYPE
- See Also:
-
-
Constructor Details
-
PrometheusTextFormatWriter
-
-
Method Details
-
accepts
- Specified by:
accepts
in interfaceExpositionFormatWriter
-
getContentType
- Specified by:
getContentType
in interfaceExpositionFormatWriter
-
write
Description copied from interface:ExpositionFormatWriter
Text formats use UTF-8 encoding.- Specified by:
write
in interfaceExpositionFormatWriter
- Throws:
IOException
-
writeCreated
- Throws:
IOException
-