Skip to content

Commit 5bb6bf2

Browse files
committed
Grafana 설정
- grafana 설치와 직접적인 관련은 없지만, web과 webflux의 조합이 불안정하고 충돌이 많을 수 있다길래 의존성을 수정했습니다. 즉 boot-starter-webflux를 지우고, implementation 'org.springframework:spring-webflux'을 넣었습니다.
1 parent 7caca4d commit 5bb6bf2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ dependencies {
2828
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
2929
implementation 'org.springframework.boot:spring-boot-starter-validation'
3030
implementation 'org.springframework.boot:spring-boot-starter-web'
31-
implementation 'org.springframework.boot:spring-boot-starter-webflux'
31+
implementation 'org.springframework.boot:spring-boot-starter-actuator'
32+
implementation 'io.micrometer:micrometer-registry-prometheus'
33+
implementation 'org.springframework:spring-webflux'
3234
compileOnly 'org.projectlombok:lombok'
3335
developmentOnly 'org.springframework.boot:spring-boot-devtools'
3436
runtimeOnly 'com.h2database:h2'

src/main/resources/application.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,13 @@ openai:
1212
api-key: ${OPENAI_API_KEY}
1313
url: https://api.openai.com/v1/chat/completions
1414
model: gpt-4o-mini
15+
16+
management:
17+
endpoints:
18+
web:
19+
exposure:
20+
include: health,info,metrics,prometheus
21+
metrics:
22+
export:
23+
prometheus:
24+
enabled: true

0 commit comments

Comments
 (0)