Skip to content

Commit

Permalink
Merge pull request #126 from mash-up-kr/feature/actuator
Browse files Browse the repository at this point in the history
Metric 모니터링을 위한 Actuator 설정
  • Loading branch information
KimDoubleB authored Aug 4, 2024
2 parents 41601f8 + 6d9abe2 commit d7f2ca1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions piikii-bootstrap/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ dependencies {
implementation(project(":piikii-output-web:tmap"))

implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-actuator")
runtimeOnly("io.micrometer:micrometer-registry-prometheus")

testImplementation(project(":piikii-application"))
}
Expand Down
31 changes: 31 additions & 0 deletions piikii-bootstrap/src/main/resources/application-actuator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
management:
endpoints:
enabled-by-default: false
web:
base-path: /_status
exposure:
include: health, metrics, prometheus
metrics:
distribution:
percentiles-histogram:
http.server.requests: true
percentiles:
http.server.requests: 0.5, 0.8, 0.95, 0.99, 1.0
health:
livenessstate:
enabled: true
readinessstate:
enabled: true
defaults:
enabled: false
ping:
enabled: true
endpoint:
metrics:
enabled: true
prometheus:
enabled: true
health:
enabled: true
probes:
enabled: true
1 change: 1 addition & 0 deletions piikii-bootstrap/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ spring:
- classpath:lemon-config/application.yml
- classpath:avocado-config/application.yml
- classpath:tmap-config/application.yml
- classpath:application-actuator.yml
application:
name: "piikii"
messages:
Expand Down

0 comments on commit d7f2ca1

Please sign in to comment.