Interface ExpositionFormatWriter

All Known Implementing Classes:
OpenMetricsTextFormatWriter, PrometheusProtobufWriter, PrometheusTextFormatWriter

public interface ExpositionFormatWriter
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accepts(String acceptHeader)
     
     
    void
    write(OutputStream out, io.prometheus.metrics.model.snapshots.MetricSnapshots metricSnapshots)
    Text formats use UTF-8 encoding.
  • Method Details

    • accepts

      boolean accepts(String acceptHeader)
    • write

      void write(OutputStream out, io.prometheus.metrics.model.snapshots.MetricSnapshots metricSnapshots) throws IOException
      Text formats use UTF-8 encoding.
      Throws:
      IOException
    • getContentType

      String getContentType()