[
https://issues.apache.org/jira/browse/KAFKA-18984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17935478#comment-17935478
]
Andrew Schofield commented on KAFKA-18984:
------------------------------------------
Not right now, it could not. This does look like quite a simple addition to
make to that tool. If that command were in a KIP, I would point out that
kafka-client-metrics.sh doesn't directly use the names of the config
properties. Also, it's probably better to use alter to delete a specific config.
How about this?
{noformat}
kafka-client-metrics.sh --bootstrap-servert $BROKERS --alter --name MYMETRICS
--default interval
{noformat}
You could specify any of internal, match or metrics, or even a list to set the
defaults.
> Support to delete specific config by kafka-client-metrics.sh
> ------------------------------------------------------------
>
> Key: KAFKA-18984
> URL: https://issues.apache.org/jira/browse/KAFKA-18984
> Project: Kafka
> Issue Type: Sub-task
> Reporter: Chia-Ping Tsai
> Assignee: Chia-Ping Tsai
> Priority: Major
>
> the delete op defined by
> [KIP-714|https://cwiki.apache.org/confluence/display/KAFKA/KIP-714%3A+Client+metrics+and+observability#KIP714:Clientmetricsandobservability-Deleteaclientmetricsconfigurationresource]
> is shown below.
> {code:java}
> $ kafka-client-metrics.sh --bootstrap-server $BROKERS --delete --name
> MYMETRICS
>
> $ kafka-configs.sh --bootstrap-server $BROKERS --alter --entity-type
> client-metrics --entity-name MYMETRICS \
> --delete-config metrics,interval.ms,match
> {code}
> That means `kafka-client-metrics.sh` can NOT remove specific config from the
> client metrics.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)