Package sonia.scm.metrics
Interface ScrapeTarget
public interface ScrapeTarget
Target for monitoring systems which scrape metrics from an http endpoint.
- Since:
- 2.15.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns 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
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
-