Skip to content

Commit

Permalink
chore: Prometheus, Grafana를 통한 모티터링 구축 (#357)
Browse files Browse the repository at this point in the history
* chore: prometheus 의존성 추가

* chore: actuator prometheus 추가
  • Loading branch information
kdomo committed Feb 28, 2024
1 parent 0e157af commit 619b608
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ dependencies {
// Actuator
implementation 'org.springframework.boot:spring-boot-starter-actuator'

// Prometheus
implementation 'io.micrometer:micrometer-registry-prometheus'

// Spring Security
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.security:spring-security-test'
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/application-actuator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ management:
endpoints:
web:
exposure:
include: health
include: health, prometheus
base-path: /10mm-actuator
jmx:
exposure:
Expand All @@ -15,3 +15,5 @@ management:
endpoint:
health:
enabled: true
prometheus:
enabled: true

0 comments on commit 619b608

Please sign in to comment.