This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>de.codecentric</groupId> | |
<artifactId>spring-boot-admin-server</artifactId> | |
<version>1.5.1</version> | |
</dependency> | |
<dependency> | |
<groupId>de.codecentric</groupId> | |
<artifactId>spring-boot-admin-server-ui</artifactId> | |
<version>1.5.1</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring.boot.admin.url=http://localhost:1111 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring.boot.admin.notify.slack.webhook-url=https://hooks.slack.com/services/T8787879tttr/B5UM0989988L/0000990999VD1hVt7Go1eL //Slack Webhook URL of a channel | |
spring.boot.admin.notify.slack.message="*#{application.name}* is *#{to.status}*" //Message to appear in the channel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter-security</artifactId> | |
</dependency> | |
<dependency> | |
<groupId>de.codecentric</groupId> | |
<artifactId>spring-boot-admin-server-ui-login</artifactId> | |
<version>1.5.1</version> | |
</dependency> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
security.user.name=admin //user name to authenticate | |
security.user.password=admin123 //Password to authenticate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spring.boot.admin.username=admin | |
spring.boot.admin.password=admin123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./zookeeper-server-start.sh ../config/zookeeper.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#####server_1.properties##### | |
broker.id=1 | |
listeners=PLAINTEXT://:9091 | |
log.dirs=/tmp/kafka-logs-1 | |
#####server_2.properties###### | |
broker.id=2 | |
listeners=PLAINTEXT://:9092 | |
log.dirs=/tmp/kafka-logs-2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###Start Broker 1 ####### | |
./kafka-server-start.sh ../config/server_1.properties | |
###Start Broker 2 ####### | |
./kafka-server-start.sh ../config/server_2.properties | |
###Start Broker 3 ####### | |
./kafka-server-start.sh ../config/server_3.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 3 --partitions 3 --topic first_topic |