Skip to content

Commit

Permalink
Merge pull request #215 from HongYeseul/feat/monitoring
Browse files Browse the repository at this point in the history
[feat/monitoring] k8s 모니터링 설정 추가
  • Loading branch information
HongYeseul authored Oct 30, 2024
2 parents 5fde2d6 + 66cbc61 commit 1235de7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions k8s/release/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ spec:
metadata:
labels:
app: spring-boot-app
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
prometheus.io/path: /actuator/prometheus
spec:
containers:
- name: spring-boot-app
Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ cloud.aws.region.statics=ap-northeast-2
cloud.aws.stack.auto=false

# actuator-monitoring-config
#management.endpoints.web.exposure.include=*
#management.endpoint.health.show-details: always
management.endpoints.web.exposure.include=health,info,prometheus
management.endpoint.prometheus.enabled=true

# JPA/Hibernate-statistics
#spring.jpa.properties.hibernate.generate_statistics=true

Expand All @@ -48,4 +49,4 @@ spring.mail.username=${MAIL_USER_ID}
spring.mail.password=${MAIL_USER_PW}
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.default-encoding=UTF-8
spring.mail.default-encoding=UTF-8

0 comments on commit 1235de7

Please sign in to comment.