Skip to content

Commit

Permalink
Merge pull request #184 from SMWU-POCHAK/feature/#179-prometheus-grafana
Browse files Browse the repository at this point in the history
[Feat/#179-prometheus-grafana] prometheus, grafana 도입
  • Loading branch information
yeahjinjeong authored Feb 15, 2025
2 parents d7174c6 + a2e0961 commit 480bc5e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM openjdk:17-jdk
WORKDIR /app
COPY build/libs/*.jar app.jar
EXPOSE 3000
EXPOSE 5000

ARG SPRING_PROFILES_ACTIVE
ARG JASYPT_KEY
Expand Down
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude group: "com.vaadin.external.google", module: "android-json"
}
Expand Down Expand Up @@ -60,6 +61,7 @@ dependencies {
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.mysql:mysql-connector-j'
annotationProcessor 'org.projectlombok:lombok'
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
testCompileOnly 'org.projectlombok:lombok:1.18.34'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.34'

Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ spring.profiles.group.PROD=PROD, COMMON
#spring.jpa.hibernate.ddl-auto=update

# jasypt
jasypt.encryptor.password=${JASYPT_KEY}
jasypt.encryptor.password=${JASYPT_KEY}

# actuator
management.endpoints.web.exposure.include=health, prometheus, info

0 comments on commit 480bc5e

Please sign in to comment.