Quotas

This page describes the commands for mamaging Kafka quotas in Lenses via the CLI.

View quotas

lenses-cli quotas [--output json/table/yaml]

Create and update quotas for users

lenses-cli quota users set [--quota-user="user"] [--quota-client=""] \
    --quota-config="{\"producer_byte_rate\": \"100000\",\"consumer_byte_rate\": \"200000\",\"request_percentage\": \"75\"}"

From a file.

lenses-cli quota users set ./quota.yaml

File example:

user: user
clientID: "*"
config:
  ProducerByteRate: "100000"
  ConsumerByteRate: "200000"
  RequestPercentage: "75"

Create and update quotas for clients

lenses-cli quota clients set [--quota-client=""] \
    --quota-config="{\"producer_byte_rate\": \"100000\",\"consumer_byte_rate\": \"200000\",\"request_percentage\": \"75\""

From a file.

Example file.

Remove user quota config’s specific properties

Delete the default user quota

Delete for a specific user quota

Delete for a specific user and client

Remove client quota config’s specific properties

If empty then all properties will be passed on automatically and the client quota will be removed entirely.

Delete the default client quota

Delete for a specific client quota

Delete for a specific client quota’s property

Last updated

Was this helpful?