Skip to content

Commit eae2bec

Browse files
FEAT: grafana 추가 (#402)
## Summary Grafana를 통해 서버 모니터링을 위해 build.gradle과 application.yml에 설정을 추가 ## Changes - build.gradle - src/main/application-dev.yml - src/main/application-prod.yml ## Type of Change <!-- 해당하는 항목에 x 표시해주세요 --> - [ ] Bug fix (기존 기능에 영향을 주지 않는 버그 수정) - [X] New feature (기존 기능에 영향을 주지 않는 새로운 기능 추가) - [ ] Breaking change (기존 기능에 영향을 주는 수정) - [ ] Refactoring (기능 변경 없는 코드 개선) - [ ] Documentation (문서 수정) - [ ] Chore (빌드, 설정 등 기타 변경) - [ ] Release (develop → main 배포) ## Related Issues #400
1 parent 2024e12 commit eae2bec

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/main/resources/application-dev.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,13 @@ jwt:
132132
master-jwt: ${JWT_MASTER_SECRET}
133133

134134
management:
135+
metrics:
136+
tags:
137+
application: ${spring.application.name}
135138
endpoints:
136139
web:
137140
exposure:
138-
include: health,info,metrics,env,beans,prometheus
141+
include: health, prometheus
139142
endpoint:
140143
health:
141144
show-details: always

src/main/resources/application-prod.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,13 @@ jwt:
139139
master-jwt: ${JWT_MASTER_SECRET}
140140

141141
management:
142+
metrics:
143+
tags:
144+
application: ${spring.application.name}
142145
endpoints:
143146
web:
144147
exposure:
145-
include: health,info,metrics,prometheus
148+
include: health, prometheus
146149
endpoint:
147150
health:
148151
show-details: never

0 commit comments

Comments
 (0)