@@ -136,25 +136,31 @@ final class CachingRlsLbClient {
136136 MetricInstrumentRegistry metricInstrumentRegistry
137137 = MetricInstrumentRegistry .getDefaultRegistry ();
138138 DEFAULT_TARGET_PICKS_COUNTER = metricInstrumentRegistry .registerLongCounter (
139- "grpc.lb.rls.default_target_picks" , "Number of LB picks sent to the default target" , "pick" ,
139+ "grpc.lb.rls.default_target_picks" ,
140+ "EXPERIMENTAL. Number of LB picks sent to the default target" , "{pick}" ,
140141 Arrays .asList ("grpc.target" , "grpc.lb.rls.server_target" ,
141- "grpc.lb.rls.data_plane_target" , "grpc.lb.pick_result" ), Collections .emptyList (), true );
142+ "grpc.lb.rls.data_plane_target" , "grpc.lb.pick_result" ), Collections .emptyList (),
143+ false );
142144 TARGET_PICKS_COUNTER = metricInstrumentRegistry .registerLongCounter ("grpc.lb.rls.target_picks" ,
143- "Number of LB picks sent to each RLS target" , "pick" ,
144- Arrays .asList ("grpc.target" , "grpc.lb.rls.server_target" ,
145- "grpc.lb.rls.data_plane_target" , "grpc.lb.pick_result" ), Collections .emptyList (), true );
145+ "EXPERIMENTAL. Number of LB picks sent to each RLS target. Note that if the default "
146+ + "target is also returned by the RLS server, RPCs sent to that target from the cache "
147+ + "will be counted in this metric, not in grpc.rls.default_target_picks." , "{pick}" ,
148+ Arrays .asList ("grpc.target" , "grpc.lb.rls.server_target" , "grpc.lb.rls.data_plane_target" ,
149+ "grpc.lb.pick_result" ), Collections .emptyList (),
150+ false );
146151 FAILED_PICKS_COUNTER = metricInstrumentRegistry .registerLongCounter ("grpc.lb.rls.failed_picks" ,
147- "Number of LB picks failed due to either a failed RLS request or the RLS channel being "
148- + "throttled" , "pick" , Arrays .asList ("grpc.target" , "grpc.lb.rls.server_target" ),
149- Collections .emptyList (), true );
152+ "EXPERIMENTAL. Number of LB picks failed due to either a failed RLS request or the "
153+ + "RLS channel being throttled" , "{pick}" ,
154+ Arrays .asList ("grpc.target" , "grpc.lb.rls.server_target" ),
155+ Collections .emptyList (), false );
150156 CACHE_ENTRIES_GAUGE = metricInstrumentRegistry .registerLongGauge ("grpc.lb.rls.cache_entries" ,
151- "Number of entries in the RLS cache" , "entry" ,
152- Arrays .asList ("grpc.target" , "grpc.lb.rls.server_target" , "grpc.lb.rls.instance_id " ),
153- Collections .emptyList (), true );
157+ "EXPERIMENTAL. Number of entries in the RLS cache" , "{ entry} " ,
158+ Arrays .asList ("grpc.target" , "grpc.lb.rls.server_target" , "grpc.lb.rls.instance_uuid " ),
159+ Collections .emptyList (), false );
154160 CACHE_SIZE_GAUGE = metricInstrumentRegistry .registerLongGauge ("grpc.lb.rls.cache_size" ,
155- "The current size of the RLS cache" , "byte " ,
156- Arrays .asList ("grpc.target" , "grpc.lb.rls.server_target" , "grpc.lb.rls.instance_id " ),
157- Collections .emptyList (), true );
161+ "EXPERIMENTAL. The current size of the RLS cache" , "By " ,
162+ Arrays .asList ("grpc.target" , "grpc.lb.rls.server_target" , "grpc.lb.rls.instance_uuid " ),
163+ Collections .emptyList (), false );
158164 }
159165
160166 private CachingRlsLbClient (Builder builder ) {
0 commit comments