Class ExpositionFormats
Object
ExpositionFormats
-
Method Summary
Modifier and TypeMethodDescriptionfindWriter(String acceptHeader) Finds the exposition format writer for the given Accept header.findWriterWithEscaping(String acceptHeader) Finds the exposition format writer and escaping scheme negotiated by the given Accept header.static ExpositionFormatsinit()static ExpositionFormatsinit(ExporterProperties properties) Deprecated.static ExpositionFormatsinit(PrometheusProperties properties)
-
Method Details
-
init
-
init
-
init
Deprecated.Useinit(PrometheusProperties)instead. -
findWriter
Finds the exposition format writer for the given Accept header.- See Also:
-
findWriterWithEscaping
Finds the exposition format writer and escaping scheme negotiated by the given Accept header.Use this method when writing a scrape response to select the format and its escaping scheme from the same
Acceptheader. Only parameters on the media range accepted by the selected format affect the escaping scheme. The returned writer's content type is the format's standard content type; as withfindWriter(String), it does not include an escaping parameter.ExpositionFormats.init().findWriterWithEscaping(acceptHeader).write(out, registry.scrape());- See Also:
-
getPrometheusProtobufWriter
-
getPrometheusTextFormatWriter
-
getOpenMetricsTextFormatWriter
-
getOpenMetrics2TextFormatWriter
-
init(PrometheusProperties)instead.