Skip to content

Commit

Permalink
expose JMX beans for extension-jvm spring discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
joshiste committed Dec 13, 2024
1 parent f1a247f commit 5612277
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 5 deletions.
9 changes: 6 additions & 3 deletions bestseller-fashion/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
server:
port: 8082

spring:
application:
name: fashion-bestseller
spring:
application:
name: fashion-bestseller
datasource:
platform: hsqldb
jmx:
Expand All @@ -17,6 +17,9 @@ management:
autotime:
percentiles: 0.95
endpoints:
jmx:
exposure:
include: beans,mappings
web:
exposure:
include: metrics,prometheus,health
Expand Down
4 changes: 4 additions & 0 deletions bestseller-toys/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ server:
spring:
application:
name: toys-bestseller
datasource:
datasource:
platform: hsqldb
jmx:
Expand All @@ -17,6 +18,9 @@ management:
autotime:
percentiles: 0.95
endpoints:
jmx:
exposure:
include: beans,mappings
web:
exposure:
include: metrics,prometheus,health
Expand Down
3 changes: 3 additions & 0 deletions checkout/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ management:
autotime:
percentiles: 0.95
endpoints:
jmx:
exposure:
include: beans,mappings
web:
exposure:
include: metrics,prometheus,health
Expand Down
4 changes: 4 additions & 0 deletions gateway/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-gateway</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
Expand Down
5 changes: 3 additions & 2 deletions gateway/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ server:
port: 8080

spring:
application:
name: gateway
jmx:
enabled: true

Expand All @@ -18,6 +16,9 @@ management:
autotime:
percentiles: 0.95
endpoints:
jmx:
exposure:
include: beans,mappings
web:
exposure:
include: metrics,prometheus,health,mappings
Expand Down
4 changes: 4 additions & 0 deletions gateway/src/main/resources/bootstrap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

spring:
application:
name: gateway
3 changes: 3 additions & 0 deletions hot-deals/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ management:
autotime:
percentiles: 0.95
endpoints:
jmx:
exposure:
include: beans,mappings
web:
exposure:
include: metrics,prometheus,health
Expand Down
3 changes: 3 additions & 0 deletions inventory-service-mock/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ management:
autotime:
percentiles: 0.75
endpoints:
jmx:
exposure:
include: beans,mappings
web:
exposure:
include: metrics,prometheus,health
Expand Down
3 changes: 3 additions & 0 deletions order/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ management:
autotime:
percentiles: 0.95
endpoints:
jmx:
exposure:
include: beans,mappings
web:
exposure:
include: metrics,prometheus,health
Expand Down

0 comments on commit 5612277

Please sign in to comment.