Skip to content

Commit 8d7534a

Browse files
committed
add metrics
1 parent 1218d04 commit 8d7534a

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

charts/atuin/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type: application
1919
# This is the chart version. This version number should be incremented each time you make changes
2020
# to the chart and its templates, including the app version.
2121
# Versions are expected to follow Semantic Versioning (https://semver.org/)
22-
version: 0.2.0
22+
version: 0.2.1
2323

2424
# This is the version number of the application being deployed. This version number should be
2525
# incremented each time you make changes to the application. Versions are not expected to

charts/atuin/templates/deployment.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,24 @@ spec:
6666
- name: ATUIN_REGISTER_WEBHOOK_USERNAME
6767
value: {{ .Values.atuin.hooks.username }}
6868
{{- end }}
69+
70+
{{- if .Values.atuin.metrics.enabled }}
71+
- name: ATUIN_METRICS__ENABLE
72+
value: true
73+
- name: ATUIN_METRICS__HOST
74+
value: {{ .Values.atuin.metrics.host }}
75+
- name: ATUIN_METRICS__PORT
76+
value: {{ .Values.atuin.metrics.port}}
77+
{{- end }}
6978
ports:
7079
- name: http
7180
containerPort: {{ .Values.service.port }}
7281
protocol: TCP
82+
{{- if .Values.atuin.metrics.enabled }}
83+
- name: metrics
84+
containerPort: {{ .Values.atuin.metrics.port }}
85+
protocol: TCP
86+
{{- end }}
7387
livenessProbe:
7488
httpGet:
7589
path: /

charts/atuin/templates/service.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,19 @@ metadata:
77
spec:
88
type: {{ .Values.service.type }}
99
ports:
10+
1011
- port: {{ .Values.service.port }}
1112
targetPort: http
1213
protocol: TCP
1314
name: http
15+
16+
17+
{{- if .Values.atuin.metrics.enabled }}
18+
- port: {{ .Values.atuin.metrics.port }}
19+
targetPort: metrics
20+
protocol: TCP
21+
name: metrics
22+
{{- end }}
23+
1424
selector:
1525
{{- include "atuin.selectorLabels" . | nindent 4 }}

charts/atuin/values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ atuin:
3232
username: "Atuin"
3333
url: ""
3434

35+
metrics:
36+
enabled: false
37+
host: "0.0.0.0"
38+
port: 9001
3539

3640
logLevel: info
3741

0 commit comments

Comments
 (0)