You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "EXPERIMENTAL. Number of LB picks sent to each RLS target. Note that if the default target is also returned by the RLS server, RPCs sent to that target from the cache will be counted in this metric, not in grpc.rls.default_target_picks.",
Copy file name to clipboardExpand all lines: balancer/rls/metrics_test.go
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,7 @@ func (s) TestRLSTargetPickMetric(t *testing.T) {
90
90
{
91
91
Name: "grpc.lb.rls.target_picks",
92
92
Description: "EXPERIMENTAL. Number of LB picks sent to each RLS target. Note that if the default target is also returned by the RLS server, RPCs sent to that target from the cache will be counted in this metric, not in grpc.rls.default_target_picks.",
93
-
Unit: "pick",
93
+
Unit: "{pick}",
94
94
Data: metricdata.Sum[int64]{
95
95
DataPoints: []metricdata.DataPoint[int64]{
96
96
{
@@ -107,7 +107,7 @@ func (s) TestRLSTargetPickMetric(t *testing.T) {
107
107
{
108
108
Name: "grpc.lb.rls.cache_entries",
109
109
Description: "EXPERIMENTAL. Number of entries in the RLS cache.",
110
-
Unit: "entry",
110
+
Unit: "{entry}",
111
111
Data: metricdata.Gauge[int64]{
112
112
DataPoints: []metricdata.DataPoint[int64]{
113
113
{
@@ -201,7 +201,7 @@ func (s) TestRLSDefaultTargetPickMetric(t *testing.T) {
201
201
{
202
202
Name: "grpc.lb.rls.default_target_picks",
203
203
Description: "EXPERIMENTAL. Number of LB picks sent to the default target.",
204
-
Unit: "pick",
204
+
Unit: "{pick}",
205
205
Data: metricdata.Sum[int64]{
206
206
DataPoints: []metricdata.DataPoint[int64]{
207
207
{
@@ -218,7 +218,7 @@ func (s) TestRLSDefaultTargetPickMetric(t *testing.T) {
218
218
{
219
219
Name: "grpc.lb.rls.cache_entries",
220
220
Description: "EXPERIMENTAL. Number of entries in the RLS cache.",
221
-
Unit: "entry",
221
+
Unit: "{entry}",
222
222
Data: metricdata.Gauge[int64]{
223
223
DataPoints: []metricdata.DataPoint[int64]{
224
224
{
@@ -299,7 +299,7 @@ func (s) TestRLSFailedRPCMetric(t *testing.T) {
299
299
{
300
300
Name: "grpc.lb.rls.failed_picks",
301
301
Description: "EXPERIMENTAL. Number of LB picks failed due to either a failed RLS request or the RLS channel being throttled.",
302
-
Unit: "pick",
302
+
Unit: "{pick}",
303
303
Data: metricdata.Sum[int64]{
304
304
DataPoints: []metricdata.DataPoint[int64]{
305
305
{
@@ -315,7 +315,7 @@ func (s) TestRLSFailedRPCMetric(t *testing.T) {
315
315
{
316
316
Name: "grpc.lb.rls.cache_entries",
317
317
Description: "EXPERIMENTAL. Number of entries in the RLS cache.",
Description: "EXPERIMENTAL. Number of scheduler updates in which there were not enough endpoints with valid weight, which caused the WRR policy to fall back to RR behavior.",
Description: "EXPERIMENTAL. Number of endpoints from each scheduler update that don't yet have usable weight information (i.e., either the load report has not yet been received, or it is within the blackout period).",
Description: "EXPERIMENTAL. Weight of each endpoint, recorded on every scheduler update. Endpoints without usable weights will be recorded as weight 0.",
h.clientMetrics.attemptStarted=createInt64Counter(metrics.Metrics(), "grpc.client.attempt.started", meter, otelmetric.WithUnit("attempt"), otelmetric.WithDescription("Number of client call attempts started."))
57
+
h.clientMetrics.attemptStarted=createInt64Counter(metrics.Metrics(), "grpc.client.attempt.started", meter, otelmetric.WithUnit("{attempt}"), otelmetric.WithDescription("Number of client call attempts started."))
58
58
h.clientMetrics.attemptDuration=createFloat64Histogram(metrics.Metrics(), "grpc.client.attempt.duration", meter, otelmetric.WithUnit("s"), otelmetric.WithDescription("End-to-end time taken to complete a client call attempt."), otelmetric.WithExplicitBucketBoundaries(DefaultLatencyBounds...))
59
59
h.clientMetrics.attemptSentTotalCompressedMessageSize=createInt64Histogram(metrics.Metrics(), "grpc.client.attempt.sent_total_compressed_message_size", meter, otelmetric.WithUnit("By"), otelmetric.WithDescription("Compressed message bytes sent per client call attempt."), otelmetric.WithExplicitBucketBoundaries(DefaultSizeBounds...))
60
60
h.clientMetrics.attemptRcvdTotalCompressedMessageSize=createInt64Histogram(metrics.Metrics(), "grpc.client.attempt.rcvd_total_compressed_message_size", meter, otelmetric.WithUnit("By"), otelmetric.WithDescription("Compressed message bytes received per call attempt."), otelmetric.WithExplicitBucketBoundaries(DefaultSizeBounds...))
Copy file name to clipboardExpand all lines: stats/opentelemetry/e2e_test.go
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -361,7 +361,7 @@ func (s) TestMethodAttributeFilter(t *testing.T) {
361
361
{
362
362
Name: "grpc.client.attempt.started",
363
363
Description: "Number of client call attempts started.",
364
-
Unit: "attempt",
364
+
Unit: "{attempt}",
365
365
Data: metricdata.Sum[int64]{
366
366
DataPoints: []metricdata.DataPoint[int64]{
367
367
{
@@ -487,7 +487,7 @@ func (s) TestAllMetricsOneFunction(t *testing.T) {
487
487
{
488
488
Name: "grpc.client.attempt.started",
489
489
Description: "Number of client call attempts started.",
490
-
Unit: "attempt",
490
+
Unit: "{attempt}",
491
491
Data: metricdata.Sum[int64]{
492
492
DataPoints: []metricdata.DataPoint[int64]{
493
493
{
@@ -510,7 +510,7 @@ func (s) TestAllMetricsOneFunction(t *testing.T) {
510
510
{
511
511
Name: "grpc.server.call.started",
512
512
Description: "Number of server calls started.",
513
-
Unit: "call",
513
+
Unit: "{call}",
514
514
Data: metricdata.Sum[int64]{
515
515
DataPoints: []metricdata.DataPoint[int64]{
516
516
{
@@ -704,7 +704,7 @@ func (s) TestWRRMetrics(t *testing.T) {
704
704
{
705
705
Name: "grpc.lb.wrr.rr_fallback",
706
706
Description: "EXPERIMENTAL. Number of scheduler updates in which there were not enough endpoints with valid weight, which caused the WRR policy to fall back to RR behavior.",
707
-
Unit: "update",
707
+
Unit: "{update}",
708
708
Data: metricdata.Sum[int64]{
709
709
DataPoints: []metricdata.DataPoint[int64]{
710
710
{
@@ -720,7 +720,7 @@ func (s) TestWRRMetrics(t *testing.T) {
Description: "EXPERIMENTAL. Number of endpoints from each scheduler update that don't yet have usable weight information (i.e., either the load report has not yet been received, or it is within the blackout period).",
723
-
Unit: "endpoint",
723
+
Unit: "{endpoint}",
724
724
Data: metricdata.Sum[int64]{
725
725
DataPoints: []metricdata.DataPoint[int64]{
726
726
{
@@ -735,7 +735,7 @@ func (s) TestWRRMetrics(t *testing.T) {
735
735
{
736
736
Name: "grpc.lb.wrr.endpoint_weights",
737
737
Description: "EXPERIMENTAL. Weight of each endpoint, recorded on every scheduler update. Endpoints without usable weights will be recorded as weight 0.",
0 commit comments