THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
{ "apiKey": XX, "type": "request", "listeners": ["broker", "zkBroker", "controller"], "name": "ListClientMetricsRequest", "validVersions": "0", "flexibleVersions": "0+", "fields": [ ]} } { "apiKey": XX, "type": "response", "name": "ListClientMetricsResponse", "validVersions": "0", "flexibleVersions": "0+", "fields": [ { "name": "ThrottleTimeMs", "type": "int32", "versions": "0+", "about": "The duration in milliseconds for which the request was throttled due to a quota violation, or zero if the request did not violate any quota." }, { "name": "ErrorCode", "type": "int16", "versions": "0+" }, { "name": "ClientMetrics", "type": "[]ClientMetricsList", "versions": "0+", "fields": [ { "name": "Name", "type": "string", "versions": "0+" } ]} ] } |
Admin Client
The following methods are added to the org.apache.kafka.client.admin.Admin
interface.
...
Code Block |
---|
package org.apache.kafka.clients.admin; @InterfaceStability.Evolving public class ClientMetricsListing { private final String id; public ClientMetricsListing( String name ) { this.name = name; } public String name() { return name; } } |
Security
Client metrics subscriptions are secured using the CLUSTER resource.
API Request | Resource | ACL operation |
---|---|---|
ListClientMetrics | CLUSTER | DESCRIBE_CONFIGS |
Compatibility, Deprecation, and Migration Plan
...