Class PrometheusStatsConfiguration
java.lang.Object
io.opencensus.exporter.stats.prometheus.PrometheusStatsConfiguration
- Direct Known Subclasses:
AutoValue_PrometheusStatsConfiguration
Configurations for
PrometheusStatsCollector
.- Since:
- 0.13
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns a newPrometheusStatsConfiguration.Builder
.abstract String
Returns the namespace used for Prometheus metrics.abstract io.prometheus.client.CollectorRegistry
Returns the PrometheusCollectorRegistry
.
-
Constructor Details
-
PrometheusStatsConfiguration
PrometheusStatsConfiguration()
-
-
Method Details
-
getRegistry
public abstract io.prometheus.client.CollectorRegistry getRegistry()Returns the PrometheusCollectorRegistry
.- Returns:
- the Prometheus
CollectorRegistry
. - Since:
- 0.13
-
getNamespace
Returns the namespace used for Prometheus metrics.- Returns:
- the namespace.
- Since:
- 0.21
-
builder
Returns a newPrometheusStatsConfiguration.Builder
.- Returns:
- a
Builder
. - Since:
- 0.13
-