public class PrometheusWriter extends Object implements MetricsWriter
| Constructor and Description |
|---|
PrometheusWriter(Writer writer) |
| Modifier and Type | Method and Description |
|---|---|
void |
write()
Write all the registered metrics
|
void |
write(String registryName)
Write the metrics that registered for the respective registryName.
|
void |
write(String registryName,
String metricName)
Write the metrics that matches the metricName for the respective registryName.
|
public PrometheusWriter(Writer writer)
public void write(String registryName, String metricName) throws NoSuchMetricException, NoSuchRegistryException, IOException
MetricsWriterwrite in interface MetricsWriterNoSuchMetricExceptionNoSuchRegistryExceptionIOExceptionpublic void write(String registryName) throws NoSuchRegistryException, IOException
MetricsWriterwrite in interface MetricsWriterNoSuchRegistryExceptionIOExceptionpublic void write()
throws IOException
MetricsWriterwrite in interface MetricsWriterIOExceptionCopyright © 2019. All rights reserved.