Skip to content

Commit

Permalink
metrics properties added to api yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
iliax committed Aug 20, 2023
1 parent 060fbbb commit 9dcb4da
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ public static KafkaProducer<byte[], byte[]> createProducer(ClustersProperties.Cl
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);
}

Expand Down
25 changes: 25 additions & 0 deletions kafka-ui-contract/src/main/resources/swagger/kafka-ui-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9dcb4da

Please sign in to comment.