Interface ScrapeTarget


public interface ScrapeTarget
Target for monitoring systems which scrape metrics from an http endpoint.
Since:
2.15.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns content type of output format.
    void
    write(OutputStream outputStream)
    Writes received metrics to given output stream.
  • Method Details

    • getContentType

      String getContentType()
      Returns content type of output format.
    • write

      void write(OutputStream outputStream) throws IOException
      Writes received metrics to given output stream.
      Parameters:
      outputStream - Output stream the metrics will be written to.
      Throws:
      IOException - if an IO error is encountered