Skip to content

Commit

Permalink
chore: 프로메테우스 연동을 위한 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
EeeasyCode committed Nov 18, 2024
1 parent fa09ac7 commit 56c0d97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion club-service/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
runtimeOnly 'com.h2database:h2'

// metrics
implementation "io.micrometer:micrometer-registry-prometheus:1.13.2"
implementation "io.micrometer:micrometer-registry-prometheus"

compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
Expand Down
10 changes: 3 additions & 7 deletions club-service/src/main/resources/application-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,10 @@ spring:
driver-class-name: net.sf.log4jdbc.sql.jdbcapi.DriverSpy

management:
metrics:
tags:
application: ${spring.application.name}
endpoints:
web:
exposure:
include: health, metrics, prometheus
metrics:
export:
prometheus:
enabled: true
tracing:
sampling:
probability: 1.0

0 comments on commit 56c0d97

Please sign in to comment.