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> ignoredScopeSelection) Deprecated, for removal: This API element is subject to removal in a future version.No-op, will be removed.scopeTagName(String ignoredScopeTagName) Deprecated, for removal: This API element is subject to removal in a future version.No-op, will be removed.tagSelection(Map<String, ? extends Collection<String>> tagSelection) Sets the tag names and allowed values with which to filter the output.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault MicrometerPrometheusFormatterget()identity()Instance of this builder as the correct type.update(Consumer<MicrometerPrometheusFormatter.Builder> consumer) Update the builder in a fluent API way.
-
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
-
tagSelection
public MicrometerPrometheusFormatter.Builder tagSelection(Map<String, ? extends Collection<String>> tagSelection) Sets the tag names and allowed values with which to filter the output. A meter must match one allowed value for every configured tag name.- Parameters:
tagSelection- tag names and their allowed values- Returns:
- updated builder
-
scopeSelection
@Deprecated(since="27.0.0", forRemoval=true) public MicrometerPrometheusFormatter.Builder scopeSelection(Iterable<String> ignoredScopeSelection) Deprecated, for removal: This API element is subject to removal in a future version.No-op, will be removed.No-op, will be removed.- Parameters:
ignoredScopeSelection- ignored; must not benull- Returns:
- updated builder
-
scopeTagName
@Deprecated(since="27.0.0", forRemoval=true) public MicrometerPrometheusFormatter.Builder scopeTagName(String ignoredScopeTagName) Deprecated, for removal: This API element is subject to removal in a future version.No-op, will be removed.No-op, will be removed.- Parameters:
ignoredScopeTagName- ignored; must not benull- Returns:
- updated builder
-
resultMediaType
Sets theMediaTypewhich controls the formatting of the resulting output.- Parameters:
resultMediaType- media type- Returns:
- updated builder
-