Class PrometheusStatsConfiguration
- java.lang.Object
-
- io.opencensus.exporter.stats.prometheus.PrometheusStatsConfiguration
-
- Direct Known Subclasses:
AutoValue_PrometheusStatsConfiguration
@Immutable public abstract class PrometheusStatsConfiguration extends java.lang.Object
Configurations forPrometheusStatsCollector
.- Since:
- 0.13
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PrometheusStatsConfiguration.Builder
Builder forPrometheusStatsConfiguration
.
-
Constructor Summary
Constructors Constructor Description PrometheusStatsConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static PrometheusStatsConfiguration.Builder
builder()
Returns a newPrometheusStatsConfiguration.Builder
.abstract java.lang.String
getNamespace()
Returns the namespace used for Prometheus metrics.abstract io.prometheus.client.CollectorRegistry
getRegistry()
Returns the PrometheusCollectorRegistry
.
-
-
-
Method Detail
-
getRegistry
public abstract io.prometheus.client.CollectorRegistry getRegistry()
Returns the PrometheusCollectorRegistry
.- Returns:
- the Prometheus
CollectorRegistry
. - Since:
- 0.13
-
getNamespace
public abstract java.lang.String getNamespace()
Returns the namespace used for Prometheus metrics.- Returns:
- the namespace.
- Since:
- 0.21
-
builder
public static PrometheusStatsConfiguration.Builder builder()
Returns a newPrometheusStatsConfiguration.Builder
.- Returns:
- a
Builder
. - Since:
- 0.13
-
-