Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ dependencies {
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.springframework.boot:spring-boot-starter-data-jdbc")
implementation("org.springframework.boot:spring-boot-starter-data-redis")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("org.springframework.boot:spring-boot-starter-mail")
implementation("org.mindrot:jbcrypt:0.4")
implementation("io.jsonwebtoken:jjwt-api:0.11.5")
Expand Down Expand Up @@ -73,6 +72,10 @@ dependencies {
// OCI Vault - SDK 직접 사용 (waffle-oci-vault 2.1.0은 Spring Boot 3.5와 호환 안됨)
implementation("com.oracle.oci.sdk:oci-java-sdk-secrets:3.80.1")
implementation("com.oracle.oci.sdk:oci-java-sdk-common-httpclient-jersey3:3.80.1")

// prometheus 의존성 추가
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation("io.micrometer:micrometer-registry-prometheus")
}

kotlin {
Expand Down
17 changes: 17 additions & 0 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,23 @@ services:
limits:
memory: 64M

prometheus:
image: prom/prometheus:latest
container_name: prometheus-dev
restart: unless-stopped
ports:
- "127.0.0.1:9090:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
- prometheus_data_dev:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
depends_on:
app:
condition: service_healthy

volumes:
mysql_data_dev:
redis_data_dev:
prometheus_data_dev:
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ management:
endpoints:
web:
exposure:
include: health
include: health,info,prometheus,metrics
endpoint:
health:
show-details: always
Expand Down
Loading