File tree 2 files changed +10
-4
lines changed
clients/da-vinci-client/src/main/java/com/linkedin/davinci
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4404,6 +4404,10 @@ public boolean hasAllPartitionReportedCompleted() {
4404
4404
return true ;
4405
4405
}
4406
4406
4407
+ public boolean isSeparatedRealtimeTopicEnabled () {
4408
+ return isSeparatedRealtimeTopicEnabled ;
4409
+ }
4410
+
4407
4411
PubSubTopicPartition resolveTopicPartitionWithKafkaURL (
4408
4412
PubSubTopic topic ,
4409
4413
PartitionConsumptionState partitionConsumptionState ,
@@ -4420,10 +4424,6 @@ PubSubTopicPartition resolveTopicPartitionWithKafkaURL(
4420
4424
return pubSubTopicPartition ;
4421
4425
}
4422
4426
4423
- boolean isSeparatedRealtimeTopicEnabled () {
4424
- return isSeparatedRealtimeTopicEnabled ;
4425
- }
4426
-
4427
4427
PubSubTopicRepository getPubSubTopicRepository () {
4428
4428
return pubSubTopicRepository ;
4429
4429
}
Original file line number Diff line number Diff line change 43
43
44
44
import com .linkedin .venice .common .VeniceSystemStoreUtils ;
45
45
import com .linkedin .venice .utils .RegionUtils ;
46
+ import com .linkedin .venice .utils .Utils ;
46
47
import io .tehuti .metrics .MetricsRepository ;
47
48
import io .tehuti .metrics .stats .AsyncGauge ;
48
49
import it .unimi .dsi .fastutil .ints .Int2ObjectMap ;
@@ -344,6 +345,11 @@ protected void registerConditionalStats() {
344
345
.getServerConfig ()
345
346
.getKafkaClusterIdToAliasMap ()
346
347
.int2ObjectEntrySet ()) {
348
+ // We will only register sensor for SIT with separate RT topic enabled to avoid unnecessary metrics.
349
+ if (getStats ().getIngestionTask ().isSeparatedRealtimeTopicEnabled ()
350
+ && Utils .isSeparateTopicRegion (entry .getValue ())) {
351
+ continue ;
352
+ }
347
353
int regionId = entry .getIntKey ();
348
354
String regionNamePrefix = RegionUtils .getRegionSpecificMetricPrefix (
349
355
getStats ().getIngestionTask ().getServerConfig ().getRegionName (),
You can’t perform that action at this time.
0 commit comments