![]() |
4 роки тому | |
---|---|---|
.github | 4 роки тому | |
.mvn | 5 роки тому | |
charts | 4 роки тому | |
docker | 4 роки тому | |
docker-openjdk | 4 роки тому | |
etc | 4 роки тому | |
images | 4 роки тому | |
kafka-ui-api | 4 роки тому | |
kafka-ui-contract | 4 роки тому | |
kafka-ui-e2e-checks | 4 роки тому | |
kafka-ui-react-app | 4 роки тому | |
.gitignore | 4 роки тому | |
CODE-OF-CONDUCT.md | 4 роки тому | |
CONTRIBUTING.md | 4 роки тому | |
LICENSE | 4 роки тому | |
README.md | 4 роки тому | |
docker-compose.md | 4 роки тому | |
mvnw | 5 роки тому | |
mvnw.cmd | 5 роки тому | |
package-lock.json | 4 роки тому | |
pom.xml | 4 роки тому | |
release_json.sh | 4 роки тому |
UI for Apache Kafka is a free open-source web UI for monitoring and management of Apache Kafka clusters.
UI for Apache Kafka is a simple tool that makes your data flows observable, helps find and troubleshoot issues faster and deliver optimal performance. Its lightweight dashboard makes it easy to track key metrics of your Kafka clusters - Brokers, Topics, Partitions, Production, and Consumption.
Set up UI for Apache Kafka with just a couple of easy commands to visualize your Kafka data in a comprehensible way. You can run the tool locally or in the cloud.
To run UI for Apache Kafka, you can use a pre-built Docker image or build it locally.
The official Docker image for UI for Apache Kafka is hosted here: hub.docker.com/r/provectuslabs/kafka-ui.
Launch Docker container in the background:
docker run -p 8080:8080 \
-e KAFKA_CLUSTERS_0_NAME=local \
-e KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS=kafka:9092 \
-d provectuslabs/kafka-ui:latest
Then access the web UI at http://localhost:8080.
Further configuration with environment variables - see environment variables
If you prefer to use docker-compose
please refer to the documentation.
Steps to build UI for Apache Kafka locally with Docker:
Install Homebrew Cask:
> brew update
Install JAVA 13 with Homebrew Cask:
> brew tap adoptopenjdk/openjdk
> brew install adoptopenjdk13
Once you installed the prerequisites and cloned the repository, run the following commands in your project directory:
Build a Docker container with UI for Apache Kafka:
./mvnw clean install -Pprod
Start UI for Apache Kafka with your Kafka clusters:
docker-compose -f ./docker/kafka-ui.yaml up
To see UI for Apache Kafka, navigate to http://localhost:8080.
If you want to start only kafka-clusters:
docker-compose -f ./docker/kafka-clusters-only.yaml up
Then start UI for Apache Kafka with a local profile.
./mvnw spring-boot:run -Pprod
helm repo add kafka-ui https://provectus.github.io/kafka-ui
helm install kafka-ui kafka-ui/kafka-ui
To read more please follow to chart documentation
To be done
UI for Apache Kafka supports TLS (SSL) and SASL connections for encryption and authentication. This can be configured by providing a combination of the following files (placed into the Kafka root directory):
To be continued
Example of how to configure clusters in the application-local.yml configuration file:
kafka:
clusters:
-
name: local
bootstrapServers: localhost:29091
zookeeper: localhost:2183
schemaRegistry: http://localhost:8085
# schemaNameTemplate: "%s-value"
jmxPort: 9997
-
name
: cluster namebootstrapServers
: where to connectzookeeper
: zookeeper service addressschemaRegistry
: schemaRegistry's addressschemaNameTemplate
: how keys are saved to schemaRegistryjmxPort
: open jmxPosrts of a brokerreadOnly
: enable read only modeConfigure as many clusters as you need by adding their configs below separated with -
.
Alternatively, each variable of of the .yml file can be set with an environment variable.
For example, if you want to use an environment variable to set the name
parameter, you can write it like this: KAFKA_CLUSTERS_2_NAME
Name | Description |
---|---|
SERVER_SERVLET_CONTEXT_PATH |
URI basePath |
KAFKA_CLUSTERS_0_NAME |
Cluster name |
KAFKA_CLUSTERS_0_BOOTSTRAPSERVERS |
Address where to connect |
KAFKA_CLUSTERS_0_ZOOKEEPER |
Zookeper service address |
KAFKA_CLUSTERS_0_PROPERTIES_SECURITY_PROTOCOL |
Security protocol to connect to the brokers. For SSL connection use "SSL", for plaintext connection don't set this environment variable |
KAFKA_CLUSTERS_0_SCHEMAREGISTRY |
SchemaRegistry's address |
KAFKA_CLUSTERS_0_SCHEMANAMETEMPLATE |
How keys are saved to schemaRegistry |
KAFKA_CLUSTERS_0_JMXPORT |
Open jmxPosrts of a broker |
KAFKA_CLUSTERS_0_READONLY |
Enable read only mode. Default: false |
LOGGING_LEVEL_ROOT |
Setting log level (all, debug, info, warn, error, fatal, off). Default: debug |
LOGGING_LEVEL_COM_PROVECTUS |
Setting log level (all, debug, info, warn, error, fatal, off). Default: debug |