apoorvmittal10 commented on code in PR #18444:
URL: https://github.com/apache/kafka/pull/18444#discussion_r1926734321


##########
core/src/main/java/kafka/server/share/SharePartitionManager.java:
##########
@@ -598,6 +632,12 @@ void processShareFetch(ShareFetch shareFetch) {
             sharePartitions.put(topicIdPartition, sharePartition);
         }
 
+        // Update the metrics for the topics for which we have received a 
share fetch request.
+        topics.forEach(topic -> {
+            
brokerTopicStats.allTopicsStats().totalShareFetchRequestRate().mark();

Review Comment:
   I discussed with @junrao, existing TotalFetchRequestsPerSec is not an exact 
duplicate for 
kafka.network:type=RequestMetrics,name=RequestsPerSec,request=Fetch as the 
former tracks an aggregated per topic metric but latter tracks the Fetch RPC. 
So I think we are good here.
   ![Screenshot 2025-01-22 at 22 02 
45](https://github.com/user-attachments/assets/48ab2ebd-2bae-42d7-b236-365dd0e19bad)
   cc: @AndrewJSchofield 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to