Skip to content

Commit

Permalink
Merge pull request #214 from CHZZK-Study/dev
Browse files Browse the repository at this point in the history
[feat/monitoring] 모니터링 추가
  • Loading branch information
HongYeseul authored Oct 30, 2024
2 parents b9f8af8 + 5fde2d6 commit 7e932ae
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ dependencies {

// 모니터링을 위한 패키지
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'io.micrometer:micrometer-registry-prometheus'

// 이메일 알림 전송용
implementation 'org.springframework.boot:spring-boot-starter-mail'
Expand Down
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

0 comments on commit 7e932ae

Please sign in to comment.