Class GcpManagedChannelOptions.GcpMetricsOptions (1.21.0)

public static class GcpManagedChannelOptions.GcpMetricsOptions

Metrics configuration for the GCP managed channel.

Inheritance

java.lang.Object > GcpManagedChannelOptions.GcpMetricsOptions

Static Methods

newBuilder()

public static GcpManagedChannelOptions.GcpMetricsOptions.Builder newBuilder()

Creates a new GcpMetricsOptions.Builder.

Returns
Type Description
GcpManagedChannelOptions.GcpMetricsOptions.Builder

newBuilder(GcpManagedChannelOptions.GcpMetricsOptions options)

public static GcpManagedChannelOptions.GcpMetricsOptions.Builder newBuilder(GcpManagedChannelOptions.GcpMetricsOptions options)

Creates a new GcpMetricsOptions.Builder from GcpMetricsOptions.

Parameter
Name Description
options GcpManagedChannelOptions.GcpMetricsOptions
Returns
Type Description
GcpManagedChannelOptions.GcpMetricsOptions.Builder

nextBuiltInMetricsPoolIndex()

public static String nextBuiltInMetricsPoolIndex()

Returns the next value for the pool index attribute of the built-in channel pool metrics: "1" to "10" in creation order, then "other". Values are unique within the process and never reused. A client library that creates several pools for one client (for example one per network path) should call this once per client and pass the same value to all of its pools. If several pools share a pool index, give each of them a different value for at least one other attribute, for example lane, so that their counts are reported separately.

Returns
Type Description
String

Constructors

GcpMetricsOptions(GcpManagedChannelOptions.GcpMetricsOptions.Builder builder)

public GcpMetricsOptions(GcpManagedChannelOptions.GcpMetricsOptions.Builder builder)
Parameter
Name Description
builder GcpManagedChannelOptions.GcpMetricsOptions.Builder

Methods

getBuiltInMetricsAttributes()

public Attributes getBuiltInMetricsAttributes()

Returns the attributes added to every built-in channel pool metric of this pool.

Returns
Type Description
io.opentelemetry.api.common.Attributes

getBuiltInMetricsMeter()

public Meter getBuiltInMetricsMeter()

Returns the meter of the built-in metrics pipeline, or null if built-in channel pool metrics are disabled.

Returns
Type Description
io.opentelemetry.api.metrics.Meter

getBuiltInMetricsPoolIndex()

public String getBuiltInMetricsPoolIndex()

Returns the pool index added to the built-in channel count metric of this pool, or null if none was set.

Returns
Type Description
String

getLabelKeys()

public List<LabelKey> getLabelKeys()
Returns
Type Description
List<io.opencensus.metrics.LabelKey>

getLabelValues()

public List<LabelValue> getLabelValues()
Returns
Type Description
List<io.opencensus.metrics.LabelValue>

getMetricRegistry()

public MetricRegistry getMetricRegistry()
Returns
Type Description
io.opencensus.metrics.MetricRegistry

getNamePrefix()

public String getNamePrefix()
Returns
Type Description
String

getOpenTelemetryMeter()

public Meter getOpenTelemetryMeter()
Returns
Type Description
io.opentelemetry.api.metrics.Meter

getOtelLabelKeys()

public List<String> getOtelLabelKeys()
Returns
Type Description
List<String>

getOtelLabelValues()

public List<String> getOtelLabelValues()
Returns
Type Description
List<String>

toString()

public String toString()
Returns
Type Description
String
Overrides