Apache Kafka TopicDescribe

Apache Kafka TopicDescribe

Certified

Describe a Kafka topic

Returns a topic's partition layout (leader, replicas, in-sync replicas) and its effective configuration. Fails with UnknownTopicOrPartitionException if the topic does not exist.

yaml
type: io.kestra.plugin.kafka.TopicDescribe

Inspect a tenant topic's retention config

yaml
id: kafka_topic_describe
namespace: company.team

tasks:
  - id: topic_describe
    type: io.kestra.plugin.kafka.TopicDescribe
    properties:
      bootstrap.servers: localhost:9092
    topic: tenant_acme_orders

  - id: log_retention
    type: io.kestra.plugin.core.log.Log
    message: "retention.ms = {{ outputs.topic_describe.configs['retention.ms'] }}"
Properties

Kafka AdminClient properties

Must include bootstrap.servers; accepts any Kafka AdminClient config. Provide base64-encoded content for ssl.keystore.location and ssl.truststore.location when using SSL.

Topic name

Reference (ref) of the pluginDefaults to apply to this task.

DefaultPT30S

AdminClient call timeout

Maximum duration to wait for each AdminClient operation to complete before failing the task. Defaults to PT30S (30 seconds).

SubTypestring

Effective topic configuration

For example retention.ms, cleanup.policy.

Number of partitions

SubTypeobject

Per-partition layout

Each entry contains partition, leader, replicas and isr (in-sync replicas broker IDs).

Replication factor

Topic name