Selaa lähdekoodia

metrics properties added to api yaml

iliax 1 vuosi sitten
vanhempi
commit
9dcb4daf1a

+ 1 - 1
kafka-ui-api/src/main/java/com/provectus/kafka/ui/service/MessagesService.java

@@ -194,11 +194,11 @@ public class MessagesService {
                                                              Map<String, Object> additionalProps) {
     Properties properties = new Properties();
     SslPropertiesUtil.addKafkaSslProperties(cluster.getSsl(), properties);
+    properties.putAll(additionalProps);
     properties.putAll(cluster.getProperties());
     properties.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, cluster.getBootstrapServers());
     properties.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, ByteArraySerializer.class);
     properties.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, ByteArraySerializer.class);
-    properties.putAll(additionalProps);
     return new KafkaProducer<>(properties);
   }
 

+ 25 - 0
kafka-ui-contract/src/main/resources/swagger/kafka-ui-api.yaml

@@ -4128,6 +4128,31 @@ components:
                             type: string
                           keystorePassword:
                             type: string
+                          prometheusExpose:
+                            type: boolean
+                          store:
+                            type: object
+                            properties:
+                              prometheus:
+                                type: object
+                                properties:
+                                  url:
+                                    type: string
+                                  remoteWrite:
+                                    type: boolean
+                                  pushGatewayUrl:
+                                    type: string
+                                  pushGatewayUsername:
+                                    type: string
+                                  pushGatewayPassword:
+                                    type: string
+                                  pushGatewayJobName:
+                                    type: string
+                              kafka:
+                                type: object
+                                properties:
+                                  topic:
+                                    type: string
                       properties:
                         type: object
                         additionalProperties: true