Class FilteredMetricsExporter
- java.lang.Object
-
- fish.payara.microprofile.metrics.writer.OpenMetricsExporter
-
- fish.payara.microprofile.metrics.writer.FilteredMetricsExporter
-
- All Implemented Interfaces:
MetricExporter
public class FilteredMetricsExporter extends OpenMetricsExporter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class fish.payara.microprofile.metrics.writer.OpenMetricsExporter
OpenMetricsExporter.OpenMetricsType
-
-
Field Summary
-
Fields inherited from class fish.payara.microprofile.metrics.writer.OpenMetricsExporter
helpWrittenByGlobalName, out, scope, typeWrittenByGlobalName
-
Fields inherited from interface fish.payara.microprofile.metrics.writer.MetricExporter
LOGGER
-
-
Constructor Summary
Constructors Modifier Constructor Description FilteredMetricsExporter(Writer out, Collection<String> metricNames)protectedFilteredMetricsExporter(org.eclipse.microprofile.metrics.MetricRegistry.Type scope, PrintWriter out, Set<String> typeWrittenByGlobalName, Set<String> helpWrittenByGlobalName, Collection<String> metricNames)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendHELP(String globalName, org.eclipse.microprofile.metrics.Metadata metadata)protected voidappendTYPE(String globalName, OpenMetricsExporter.OpenMetricsType type)protected voidappendValue(String globalName, org.eclipse.microprofile.metrics.Tag[] tags, Number value)MetricExporterin(org.eclipse.microprofile.metrics.MetricRegistry.Type scope, boolean asNode)Creates a newMetricExporterwith the provided scope.-
Methods inherited from class fish.payara.microprofile.metrics.writer.OpenMetricsExporter
export, export, export, export, export, export, export, exportComplete, roundValue, sanitizeMetricName, tagsToString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface fish.payara.microprofile.metrics.writer.MetricExporter
export, in
-
-
-
-
Constructor Detail
-
FilteredMetricsExporter
public FilteredMetricsExporter(Writer out, Collection<String> metricNames)
-
FilteredMetricsExporter
protected FilteredMetricsExporter(org.eclipse.microprofile.metrics.MetricRegistry.Type scope, PrintWriter out, Set<String> typeWrittenByGlobalName, Set<String> helpWrittenByGlobalName, Collection<String> metricNames)
-
-
Method Detail
-
in
public MetricExporter in(org.eclipse.microprofile.metrics.MetricRegistry.Type scope, boolean asNode)
Description copied from interface:MetricExporterCreates a newMetricExporterwith the provided scope.- Specified by:
inin interfaceMetricExporter- Overrides:
inin classOpenMetricsExporter- Parameters:
scope- the scope to use in the export, most likely on of theMetricRegistry.Types- Returns:
- A new instance of this
MetricExporterwith the provided scope set, this instance is kept unchanged and will continue to use its current scope. Both, thisMetricExporterand the returned one will however share other internal state that is related to the output written so far.
-
appendTYPE
protected void appendTYPE(String globalName, OpenMetricsExporter.OpenMetricsType type)
- Overrides:
appendTYPEin classOpenMetricsExporter
-
appendHELP
protected void appendHELP(String globalName, org.eclipse.microprofile.metrics.Metadata metadata)
- Overrides:
appendHELPin classOpenMetricsExporter
-
appendValue
protected void appendValue(String globalName, org.eclipse.microprofile.metrics.Tag[] tags, Number value)
- Overrides:
appendValuein classOpenMetricsExporter
-
-