Class PrometheusProtobufWriterImpl
Object
PrometheusProtobufWriterImpl
- All Implemented Interfaces:
ExpositionFormatWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanMetrics.MetricFamilyconvert(MetricSnapshot snapshot, EscapingScheme scheme) toDebugString(MetricSnapshots metricSnapshots, EscapingScheme escapingScheme) Converts the metric snapshots to a debug string using the specified escaping scheme.voidwrite(OutputStream out, MetricSnapshots metricSnapshots, EscapingScheme escapingScheme) Writes the given metric snapshots to the output stream using the specified escaping scheme.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ExpositionFormatWriter
isAvailable, toDebugString, write
-
Constructor Details
-
PrometheusProtobufWriterImpl
public PrometheusProtobufWriterImpl()
-
-
Method Details
-
accepts
- Specified by:
acceptsin interfaceExpositionFormatWriter
-
getContentType
- Specified by:
getContentTypein interfaceExpositionFormatWriter
-
toDebugString
Description copied from interface:ExpositionFormatWriterConverts the metric snapshots to a debug string using the specified escaping scheme.- Specified by:
toDebugStringin interfaceExpositionFormatWriter
-
write
public void write(OutputStream out, MetricSnapshots metricSnapshots, EscapingScheme escapingScheme) throws IOException Description copied from interface:ExpositionFormatWriterWrites the given metric snapshots to the output stream using the specified escaping scheme.- Specified by:
writein interfaceExpositionFormatWriter- Throws:
IOException
-
convert
-