From: Kai Moritz Date: Thu, 26 Sep 2024 12:53:14 +0000 (+0200) Subject: Steuerung und Abfrage über die Actuator-REST-API von ermöglicht X-Git-Tag: producer/rest-producer--REBASE-ANFANG~1 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=66d453898735e9e1b4857a7592edb53d7e546073;p=demos%2Fkafka%2Ftraining Steuerung und Abfrage über die Actuator-REST-API von ermöglicht --- diff --git a/pom.xml b/pom.xml index 02707b9..841299b 100644 --- a/pom.xml +++ b/pom.xml @@ -22,6 +22,14 @@ + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-actuator + org.springframework.boot spring-boot-configuration-processor diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index d102dd0..0d5752c 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -6,7 +6,31 @@ producer: batch-size: 16384 linger-ms: 0 compression-type: gzip +management: + endpoint: + shutdown: + enabled: true + endpoints: + web: + exposure: + include: "*" + info: + env: + enabled: true + java: + enabled: true +info: + kafka: + bootstrap-server: ${producer.bootstrap-server} + client-id: ${producer.client-id} + topic: ${producer.topic} + acks: ${producer.acks} + batch-size: ${producer.batch-size} + linger-ms: ${producer.linger-ms} + compression-type: ${producer.compression-type} logging: level: root: INFO de.juplo: TRACE +server: + port: 8880