Class AutoValue_PrometheusStatsConfiguration.Builder
java.lang.Object
io.opencensus.exporter.stats.prometheus.PrometheusStatsConfiguration.Builder
io.opencensus.exporter.stats.prometheus.AutoValue_PrometheusStatsConfiguration.Builder
- Enclosing class:
AutoValue_PrometheusStatsConfiguration
static final class AutoValue_PrometheusStatsConfiguration.Builder
extends PrometheusStatsConfiguration.Builder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a newPrometheusStatsConfiguration
with current settings.setNamespace
(String namespace) Sets the namespace used for Prometheus metrics.setRegistry
(io.prometheus.client.CollectorRegistry registry) Sets the given PrometheusCollectorRegistry
.
-
Field Details
-
registry
private io.prometheus.client.CollectorRegistry registry -
namespace
-
-
Constructor Details
-
Builder
Builder()
-
-
Method Details
-
setRegistry
public PrometheusStatsConfiguration.Builder setRegistry(io.prometheus.client.CollectorRegistry registry) Description copied from class:PrometheusStatsConfiguration.Builder
Sets the given PrometheusCollectorRegistry
.- Specified by:
setRegistry
in classPrometheusStatsConfiguration.Builder
- Parameters:
registry
- the PrometheusCollectorRegistry
.- Returns:
- this.
-
setNamespace
Description copied from class:PrometheusStatsConfiguration.Builder
Sets the namespace used for Prometheus metrics.- Specified by:
setNamespace
in classPrometheusStatsConfiguration.Builder
- Parameters:
namespace
- the namespace.- Returns:
- this.
-
build
Description copied from class:PrometheusStatsConfiguration.Builder
Builds a newPrometheusStatsConfiguration
with current settings.- Specified by:
build
in classPrometheusStatsConfiguration.Builder
- Returns:
- a
PrometheusStatsConfiguration
.
-