Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions kafka_consumer/assets/configuration/spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ files:
- type: array
items:
type: string
- name: allow_kafka_actions
description: |
Set to `false` to prevent the Agent from running one-time Kafka actions against the cluster configured by
this instance. This does not disable Kafka consumer monitoring or other Remote Configuration features.
fleet_configurable: false
value:
type: boolean
example: true
display_default: true
- name: kafka_client_api_version
description: |
Specify the highest client protocol version supported by all brokers in the cluster.
Expand Down
1 change: 1 addition & 0 deletions kafka_consumer/changelog.d/24858.added
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add an option to prevent Kafka actions from running against a monitored cluster.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def shared_kafka_timeout():
return 5


def instance_allow_kafka_actions():
return True


def instance_close_admin_client():
return True

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class InstanceConfig(BaseModel):
arbitrary_types_allowed=True,
frozen=True,
)
allow_kafka_actions: Optional[bool] = None
close_admin_client: Optional[bool] = None
collect_consumer_group_state: Optional[bool] = None
consumer_groups: Optional[MappingProxyType[str, Any]] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ instances:
#
- kafka_connect_str: <KAFKA_CONNECT_STR>

## @param allow_kafka_actions - boolean - optional - default: true
## Set to `false` to prevent the Agent from running one-time Kafka actions against the cluster configured by
## this instance. This does not disable Kafka consumer monitoring or other Remote Configuration features.
#
# allow_kafka_actions: true

## @param kafka_client_api_version - string - optional
## Specify the highest client protocol version supported by all brokers in the cluster.
##
Expand Down
Loading