Class MicrometerPrometheusFormatter.Builder
java.lang.Object
io.helidon.metrics.providers.micrometer.MicrometerPrometheusFormatter.Builder
- All Implemented Interfaces:
Builder<MicrometerPrometheusFormatter.Builder,,MicrometerPrometheusFormatter> Supplier<MicrometerPrometheusFormatter>
- Enclosing class:
MicrometerPrometheusFormatter
public static class MicrometerPrometheusFormatter.Builder
extends Object
implements Builder<MicrometerPrometheusFormatter.Builder,MicrometerPrometheusFormatter>
Builder for creating a tailored Prometheus formatter.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.meterNameSelection(Iterable<String> meterNameSelection) Sets the meter name with which to filter the output.resultMediaType(MediaType resultMediaType) Sets theMediaTypewhich controls the formatting of the resulting output.scopeSelection(Iterable<String> scopeSelection) Sets the scope value with which to filter the output.scopeTagName(String scopeTagName) Sets the scope tag name with which to filter the output.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<MicrometerPrometheusFormatter.Builder,MicrometerPrometheusFormatter> - Returns:
- instance of the built type
-
meterNameSelection
public MicrometerPrometheusFormatter.Builder meterNameSelection(Iterable<String> meterNameSelection) Sets the meter name with which to filter the output.- Parameters:
meterNameSelection- meter name to select- Returns:
- updated builder
-
scopeSelection
Sets the scope value with which to filter the output.- Parameters:
scopeSelection- scope to select- Returns:
- updated builder
-
scopeTagName
Sets the scope tag name with which to filter the output.- Parameters:
scopeTagName- scope tag name- Returns:
- updated builder
-
resultMediaType
Sets theMediaTypewhich controls the formatting of the resulting output.- Parameters:
resultMediaType- media type- Returns:
- updated builder
-