Bird
Raised Fist0

Which of the following is the correct JMX metric name to monitor the average request queue size on a Kafka broker?

easy📝 Syntax Q3 of Q15
Kafka - Monitoring and Operations

Which of the following is the correct JMX metric name to monitor the average request queue size on a Kafka broker?

Akafka.network:type=RequestMetrics,name=AvgRequestQueueSize
Bkafka.network:type=RequestMetrics,name=QueueSize,request=Produce
Ckafka.network:type=RequestMetrics,name=QueueSize,request=FetchConsumer
Dkafka.network:type=RequestMetrics,name=RequestQueueSize,request=Produce
Step-by-Step Solution
Solution:
  1. Step 1: Recall the standard JMX metric naming for request queue size

    The correct format includes type=RequestMetrics, name=QueueSize, and the request type like Produce or FetchConsumer.
  2. Step 2: Identify the exact metric for average queue size

    kafka.network:type=RequestMetrics,name=QueueSize,request=Produce matches the correct naming convention for Produce requests queue size.
  3. Final Answer:

    kafka.network:type=RequestMetrics,name=QueueSize,request=Produce -> Option B
  4. Quick Check:

    Request queue size metric = kafka.network:type=RequestMetrics,name=QueueSize,request=Produce [OK]
Quick Trick: JMX metrics use type, name, and request tags precisely [OK]
Common Mistakes:
MISTAKES
  • Using incorrect metric names or missing request type
  • Confusing QueueSize with AvgRequestQueueSize

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes