Class PrometheusProtobufWriterImpl
Object
PrometheusProtobufWriterImpl
- All Implemented Interfaces:
ExpositionFormatWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Metrics.MetricFamily
convert
(MetricSnapshot snapshot, EscapingScheme scheme) toDebugString
(MetricSnapshots metricSnapshots, EscapingScheme escapingScheme) Converts the metric snapshots to a debug string using the specified escaping scheme.void
write
(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, wait
Methods inherited from interface ExpositionFormatWriter
isAvailable, toDebugString, write
-
Constructor Details
-
PrometheusProtobufWriterImpl
public PrometheusProtobufWriterImpl()
-
-
Method Details
-
accepts
- Specified by:
accepts
in interfaceExpositionFormatWriter
-
getContentType
- Specified by:
getContentType
in interfaceExpositionFormatWriter
-
toDebugString
Description copied from interface:ExpositionFormatWriter
Converts the metric snapshots to a debug string using the specified escaping scheme.- Specified by:
toDebugString
in interfaceExpositionFormatWriter
-
write
public void write(OutputStream out, MetricSnapshots metricSnapshots, EscapingScheme escapingScheme) throws IOException Description copied from interface:ExpositionFormatWriter
Writes the given metric snapshots to the output stream using the specified escaping scheme.- Specified by:
write
in interfaceExpositionFormatWriter
- Throws:
IOException
-
convert
-