Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.16 KB

File metadata and controls

35 lines (25 loc) · 1.16 KB

Kafka Topics

The Kafka Topics are described in the following files:

  • topics/greetings-topic.yml: Sample topic to be used by the sample application
  • topics/greetings-reversed-topic.yml: Sample topic to be used by the sample streams application
  • topics/logs-topic.yml: Topic to store logs
  • topics/metrics-topic.yml: Topic to store metrics

You can deploy or update the topics with the following command:

oc apply -f topics/

This command will show the status of the Kafka Topics:

❯ oc get kt
NAME                              CLUSTER     PARTITIONS   REPLICATION FACTOR   READY
apps.samples.greetings            event-bus   3            3                    True
apps.samples.greetings.reversed   event-bus   3            3                    True
monitor.ocp.logs                  event-bus   10           3                    True
monitor.ocp.metrics               event-bus   10           3                    True

To describe a KafkaTopic:

oc get kafkatopic monitor.ocp.metrics -o yaml

References: