apoorvmittal10 commented on PR #23763:
URL: https://github.com/apache/kafka/pull/23763#issuecomment-6917863046

   @stevenschlansker @Ritikj55 Thanks for the issue and PR. I want to make sure 
I understand the motivation.
   
   Today a KafkaMetric is always created and registered regardless of 
metrics.recording.level. The level only controls whether the sensor records 
values, so a disabled metric stays at its initial value (0 or NaN). It is still 
visible through JMX and every other MetricsReporter, and, until this PR, 
through KIP-714 telemetry.
   
   This PR hides such metrics only from telemetry. A few questions:
   
   Why is the goal specifically to shrink the telemetry payload? If the broader 
goal is that disabled metrics shouldn’t be exposed by any reporter, that is a 
different discussion with a different design.
   
   KIP-714 subscriptions are defined by the broker, while the recording level 
is a client-side config. If a broker subscribes to a metric which client 
doesn't record but anyways defines, the metric silently never arrives. The 
broker can’t tell whether it is absent, disabled or failed to push. Should the 
client instead send it, or is silent omission the intended contract?
   
   Anyone who currently subscribes to these metrics (and sees zeros) will stop 
receiving them. If we go ahead with this then KIP-714 needs a clarification and 
a KIP update for this.
   
   My opinion is that this doesn't add much value. If we do know the cases 
where you have seen this problematic then worth discussing with data points.


-- 
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