Skip to content

Commit

Permalink
Merge branch 'feat/monitoring' of https://github.com/HongYeseul/Grass…
Browse files Browse the repository at this point in the history
…-Diary-Server into feat/monitoring
  • Loading branch information
HongYeseul committed Oct 30, 2024
2 parents cab9a27 + 3be6295 commit 66cbc61
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
16 changes: 16 additions & 0 deletions k8s/release/monitoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: spring-boot-app-monitor
namespace: monitoring
spec:
selector:
matchLabels:
app: spring-boot-app
namespaceSelector:
matchNames:
- grass-diary-backend-release
endpoints:
- port: 80
path: /actuator/prometheus
interval: 15s
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 66cbc61

Please sign in to comment.