Skip to content

Commit

Permalink
Merge pull request #126 from vivid-planet/metrics-configuration
Browse files Browse the repository at this point in the history
Add configuration to expose a metrics port
  • Loading branch information
Vierlip authored Dec 20, 2024
2 parents d750e0e + 75e38f2 commit a741a70
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/silly-ducks-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"comet-admin-v1": minor
"comet-site-v1": minor
"comet-api-v1": minor
---

Add configuration to expose metrics port
5 changes: 5 additions & 0 deletions charts/comet-admin-v1/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ spec:
- name: http
containerPort: 3000
protocol: TCP
{{- if .Values.metrics.enabled }}
- name: metrics
containerPort: {{ .Values.metrics.containerPorts.http }}
protocol: TCP
{{- end }}
env:
- name: NODE_ENV
value: "{{ .Values.nodeEnv }}"
Expand Down
5 changes: 5 additions & 0 deletions charts/comet-admin-v1/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ service:
type: ClusterIP
port: 3000

metrics:
enabled: false
containerPorts:
http: 9466

ingress:
enabled: false
annotations:
Expand Down
5 changes: 5 additions & 0 deletions charts/comet-api-v1/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ spec:
- name: http
containerPort: 3000
protocol: TCP
{{- if .Values.metrics.enabled }}
- name: metrics
containerPort: {{ .Values.metrics.containerPorts.http }}
protocol: TCP
{{- end }}
envFrom:
{{- if .Values.env }}
- configMapRef:
Expand Down
5 changes: 5 additions & 0 deletions charts/comet-api-v1/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ service:
type: ClusterIP
port: 3000

metrics:
enabled: false
containerPorts:
http: 9465

ingress:
enabled: false
annotations:
Expand Down
5 changes: 5 additions & 0 deletions charts/comet-site-v1/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ spec:
- name: http
containerPort: 3000
protocol: TCP
{{- if .Values.metrics.enabled }}
- name: metrics
containerPort: {{ .Values.metrics.containerPorts.http }}
protocol: TCP
{{- end }}
livenessProbe:
httpGet:
path: /api/status
Expand Down
5 changes: 5 additions & 0 deletions charts/comet-site-v1/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ service:
type: ClusterIP
port: 3000

metrics:
enabled: false
containerPorts:
http: 9464

resources:
limits:
memory: 200Mi
Expand Down

0 comments on commit a741a70

Please sign in to comment.