imavishek opened a new pull request, #24363:
URL: https://github.com/apache/kafka/pull/24363

   Implements 
[KIP-1404](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1404%3A+Per-Principal+Remote+Storage+Fetch+Metrics):
 Per-Principal Remote Storage Fetch Metrics.
   
   *Do not merge before the KIP is accepted.*
   
   ### What
   Opt-in metrics (disabled by default) showing which principal reads from 
remote storage, and optionally which topic and client id.
   
   - Group `kafka.server:type=remote-fetch-principal-metrics`, tags `user` and 
optionally `topic` and `client-id`.
   - Metrics: `remote-fetch-byte-rate`, `remote-fetch-byte-total`, 
`remote-fetch-request-rate`, `remote-fetch-request-total`.
   - Configs: `remote.fetch.principal.metrics.enable` (dynamic, cluster-wide), 
`.topic.enable`, `.client.id.enable`, `.ttl.ms` (read-only).
   - Keys are created on the first remote read and removed with their metrics 
after `ttl.ms` of inactivity.
   - `RemoteStorageFetchInfo` now carries `Optional<ClientMetadata>`; the old 
constructor is kept. Fetch v4-v10 is not attributed.
   
   ### Testing
   `RemoteFetchPrincipalMetricsTest`, `RemoteLogReaderTest`, 
`RemoteLogManagerTest`, `DynamicBrokerConfigTest`, plus checkstyle.
   


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