Skip to content

Commit

Permalink
feat: spring actuator metrics 추가 (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
jxmen committed Sep 6, 2024
1 parent 6e71995 commit 1c847bf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ plugins {
}

group = "dev.jxmen"
version = "1.3.8"
version = "1.3.9"

java {
sourceCompatibility = JavaVersion.VERSION_21
Expand Down
8 changes: 6 additions & 2 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ management:
endpoints:
web:
exposure:
include: prometheus, health, info
include: prometheus, health, info, metrics
base-path: ${MANAGEMENT_ENDPOINTS_WEB_BASE_PATH}
jmx:
exposure:
Expand All @@ -118,6 +118,8 @@ management:
enabled: true
prometheus:
enabled: true
metrics:
enabled: true

---
spring.config.activate.on-profile: prod
Expand Down Expand Up @@ -149,7 +151,7 @@ management:
endpoints:
web:
exposure:
include: prometheus, health, info
include: prometheus, health, info, metrics
base-path: ${MANAGEMENT_ENDPOINTS_WEB_BASE_PATH}
jmx:
exposure:
Expand All @@ -161,3 +163,5 @@ management:
enabled: true
prometheus:
enabled: true
metrics:
enabled: true

0 comments on commit 1c847bf

Please sign in to comment.