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