Class PrometheusProtobufWriter
Object
PrometheusProtobufWriter
- All Implemented Interfaces:
ExpositionFormatWriter
Write the Prometheus protobuf format as defined in github.com/prometheus/client_model.
As of today, this is the only exposition format that supports native histograms.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Metrics.MetricFamily
convert
(MetricSnapshot snapshot) toDebugString
(MetricSnapshots metricSnapshots) void
write
(OutputStream out, MetricSnapshots metricSnapshots) Text formats use UTF-8 encoding.
-
Field Details
-
CONTENT_TYPE
- See Also:
-
-
Constructor Details
-
PrometheusProtobufWriter
public PrometheusProtobufWriter()
-
-
Method Details
-
accepts
- Specified by:
accepts
in interfaceExpositionFormatWriter
-
getContentType
- Specified by:
getContentType
in interfaceExpositionFormatWriter
-
toDebugString
-
write
Description copied from interface:ExpositionFormatWriter
Text formats use UTF-8 encoding.- Specified by:
write
in interfaceExpositionFormatWriter
- Throws:
IOException
-
convert
-