Skip to content

Instantly share code, notes, and snippets.

View 2013techsmarts's full-sized avatar

Siva Prasad Rao Janapati 2013techsmarts

View GitHub Profile
@2013techsmarts
2013techsmarts / Spring Boot Admin Server Dependencies
Last active June 18, 2017 04:55
Maven Dependencies for Spring Boot Admin Server
<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>
@2013techsmarts
2013techsmarts / Spring Boot Admin Client Configuration
Created June 18, 2017 04:59
Spring Boot Admin Client configuration
spring.boot.admin.url=http://localhost:1111
@2013techsmarts
2013techsmarts / Slack Notifications
Created June 18, 2017 05:29
Slack Notifications
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
@2013techsmarts
2013techsmarts / Spring Boot Admin Server Login
Last active June 18, 2017 05:36
Spring Boot Admin Server Login
<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>
@2013techsmarts
2013techsmarts / Spring Admin Server Security
Created June 18, 2017 05:39
Spring Admin Server Security
security.user.name=admin //user name to authenticate
security.user.password=admin123 //Password to authenticate
@2013techsmarts
2013techsmarts / Spring Boot Admin Client Authentication
Created June 18, 2017 05:41
Spring Boot Admin Client Authentication
spring.boot.admin.username=admin
spring.boot.admin.password=admin123
./zookeeper-server-start.sh ../config/zookeeper.properties
#####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
###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
./kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 3 --partitions 3 --topic first_topic