Steuerung und Abfrage über die Actuator-REST-API von ermöglicht
authorKai Moritz <kai@juplo.de>
Thu, 26 Sep 2024 12:53:14 +0000 (14:53 +0200)
committerKai Moritz <kai@juplo.de>
Sat, 28 Sep 2024 08:43:57 +0000 (10:43 +0200)
pom.xml
src/main/resources/application.yml

diff --git a/pom.xml b/pom.xml
index 02707b9..841299b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
   </properties>
 
   <dependencies>
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-web</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-actuator</artifactId>
+    </dependency>
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-configuration-processor</artifactId>
index d102dd0..0d5752c 100644 (file)
@@ -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