Skip to content

Commit

Permalink
add management dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
javieralvarezin2 committed Sep 30, 2024
1 parent 700e8b3 commit 05b386c
Show file tree
Hide file tree
Showing 6 changed files with 141 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-authorization-server'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
// Cryptography
implementation 'com.nimbusds:nimbus-jose-jwt:9.40'
implementation 'org.bitcoinj:bitcoinj-core:0.17-alpha5'
Expand Down
28 changes: 28 additions & 0 deletions src/main/resources/application-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,34 @@ spring:
- classpath:/static/
- classpath:/resources/

# Spring Management Configuration - Actuator
management:
endpoints:
enabled-by-default: false
web:
exposure:
include: health, info, loggers, metrics, prometheus
base-path: /
path-mapping:
health: health
info: info
loggers: loggers
metrics: metrics
prometheus: prometheus
endpoint:
health:
enabled: true
show-details: always
loggers:
enabled: true
metrics:
enabled: true
prometheus:
enabled: true
metrics:
tags:
application: ${spring.application.name}

security:
authorizationServer:
token:
Expand Down
28 changes: 28 additions & 0 deletions src/main/resources/application-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,34 @@ spring:
- classpath:/static/
- classpath:/resources/

# Spring Management Configuration - Actuator
management:
endpoints:
enabled-by-default: false
web:
exposure:
include: health, info, loggers, metrics, prometheus
base-path: /
path-mapping:
health: health
info: info
loggers: loggers
metrics: metrics
prometheus: prometheus
endpoint:
health:
enabled: true
show-details: always
loggers:
enabled: true
metrics:
enabled: true
prometheus:
enabled: true
metrics:
tags:
application: ${spring.application.name}

security:
authorizationServer: "http://localhost:9000"
token:
Expand Down
28 changes: 28 additions & 0 deletions src/main/resources/application-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,34 @@ spring:
- classpath:/static/
- classpath:/resources/

# Spring Management Configuration - Actuator
management:
endpoints:
enabled-by-default: false
web:
exposure:
include: health, info, loggers, metrics, prometheus
base-path: /
path-mapping:
health: health
info: info
loggers: loggers
metrics: metrics
prometheus: prometheus
endpoint:
health:
enabled: true
show-details: always
loggers:
enabled: true
metrics:
enabled: true
prometheus:
enabled: true
metrics:
tags:
application: ${spring.application.name}

security:
authorizationServer:
token:
Expand Down
28 changes: 28 additions & 0 deletions src/main/resources/application-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,34 @@ spring:
- classpath:/static/
- classpath:/resources/

# Spring Management Configuration - Actuator
management:
endpoints:
enabled-by-default: false
web:
exposure:
include: health, info, loggers, metrics, prometheus
base-path: /
path-mapping:
health: health
info: info
loggers: loggers
metrics: metrics
prometheus: prometheus
endpoint:
health:
enabled: true
show-details: always
loggers:
enabled: true
metrics:
enabled: true
prometheus:
enabled: true
metrics:
tags:
application: ${spring.application.name}

security:
authorizationServer:
token:
Expand Down
28 changes: 28 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,34 @@ spring:
- classpath:/static/
- classpath:/resources/

# Spring Management Configuration - Actuator
management:
endpoints:
enabled-by-default: false
web:
exposure:
include: health, info, loggers, metrics, prometheus
base-path: /
path-mapping:
health: health
info: info
loggers: loggers
metrics: metrics
prometheus: prometheus
endpoint:
health:
enabled: true
show-details: always
loggers:
enabled: true
metrics:
enabled: true
prometheus:
enabled: true
metrics:
tags:
application: ${spring.application.name}

security:
authorizationServer: "http://localhost:9000"
token:
Expand Down

0 comments on commit 05b386c

Please sign in to comment.