Interface ExpositionFormatWriter
- All Known Implementing Classes:
OpenMetricsTextFormatWriter
,PrometheusProtobufWriter
,PrometheusProtobufWriterImpl
,PrometheusTextFormatWriter
public interface ExpositionFormatWriter
-
Method Summary
Modifier and TypeMethodDescriptionboolean
default boolean
Returns true if the writer is available.default String
toDebugString
(MetricSnapshots metricSnapshots) void
write
(OutputStream out, MetricSnapshots metricSnapshots) Text formats use UTF-8 encoding.
-
Method Details
-
accepts
-
write
Text formats use UTF-8 encoding.- Throws:
IOException
-
toDebugString
-
getContentType
-
isAvailable
Returns true if the writer is available. If false, the writer will throw an exception if used.
-