Kafka Streams 拓撲視覺化

Kafka Streams binder 提供以下 actuator 端點,用於檢索拓撲描述,您可以使用這些描述透過外部工具視覺化拓撲。

/actuator/kafkastreamstopology

/actuator/kafkastreamstopology/<application-id of the processor>

您需要包含 Spring Boot 的 actuator 和 web 依賴才能訪問這些端點。此外,您還需要將 kafkastreamstopology 新增到 management.endpoints.web.exposure.include 屬性中。預設情況下,kafkastreamstopology 端點是停用的。