Skip to content

Commit

Permalink
chore: 프로메테우스 연동
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondanythings committed Dec 21, 2023
1 parent ac7527d commit 9ce5c5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion k8s/deployment-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
# maxUnavailable: 1
# maxSurge: 1
minReadySeconds: 5
replicas: 1
replicas: 2
selector:
matchLabels:
app: catsnewyear-dev
Expand All @@ -21,6 +21,10 @@ spec:
labels:
app: catsnewyear-dev
env: development
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: /metrics
prometheus.io/port: '3000'
spec:
containers:
- name: catsnewyear
Expand Down
4 changes: 4 additions & 0 deletions k8s/deployment-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ spec:
labels:
app: catsnewyear
env: production
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: /metrics
prometheus.io/port: '3000'
spec:
containers:
- name: catsnewyear
Expand Down

0 comments on commit 9ce5c5d

Please sign in to comment.