Package io.prometheus.metrics.config
Class ExporterFilterProperties.Builder
java.lang.Object
io.prometheus.metrics.config.ExporterFilterProperties.Builder
- Enclosing class:
- ExporterFilterProperties
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withAllowedNames(String... allowedNames) Only allowed metric names will be exposed.withAllowedPrefixes(String... allowedPrefixes) Only metrics with a name starting with an allowed prefix will be exposed.withExcludedNames(String... excludedNames) Excluded metric names will not be exposed.withExcludedPrefixes(String... excludedPrefixes) Metrics with a name starting with an excluded prefix will not be exposed.
-
Method Details
-
withAllowedNames
Only allowed metric names will be exposed. -
withExcludedNames
Excluded metric names will not be exposed. -
withAllowedPrefixes
Only metrics with a name starting with an allowed prefix will be exposed. -
withExcludedPrefixes
Metrics with a name starting with an excluded prefix will not be exposed. -
build
-