Skip to content

Commit b1952c4

Browse files
authored
SMG: Added Prometheus annotations (#65)
1 parent 2c0f092 commit b1952c4

3 files changed

Lines changed: 22 additions & 4 deletions

File tree

charts/relution/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sources:
1111

1212
type: application
1313

14-
version: 3.2.0
14+
version: 3.2.1
1515

1616
appVersion: "26.2.2"
1717

charts/relution/ci/full-values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,18 @@ smg:
137137
enabled: true
138138
app:
139139
config:
140+
management:
141+
server:
142+
port: 8099
143+
add-application-context-header: false
144+
endpoint:
145+
web:
146+
exposure:
147+
include: '*'
148+
health:
149+
probes:
150+
enabled: true
151+
show-details: always
140152
relution:
141153
server:
142154
apiKey: test

charts/relution/templates/smg/smg-deployment.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ spec:
2222
{{- if .Values.smg.app.secrets }}
2323
checksum/secrets: {{ include (print $.Template.BasePath "/smg/smg-secrets.yaml") . | sha256sum }}
2424
{{- end }}
25+
prometheus.io/scrape: "true"
26+
prometheus.io/port: "8099"
27+
prometheus.io/path: "/actuator/prometheus"
2528
{{- with .Values.smg.podAnnotations }}
2629
{{- toYaml . | nindent 8 }}
2730
{{- end }}
@@ -65,11 +68,14 @@ spec:
6568
- name: http
6669
containerPort: 8093
6770
protocol: TCP
71+
- name: monitoring
72+
containerPort: 8099
73+
protocol: TCP
6874
{{- if .Values.smg.startupProbe.enabled }}
6975
startupProbe:
7076
httpGet:
7177
path: /actuator/health
72-
port: http
78+
port: monitoring
7379
periodSeconds: {{ .Values.smg.startupProbe.periodSeconds | default 10 }}
7480
timeoutSeconds: {{ .Values.smg.startupProbe.timeoutSeconds | default 1 }}
7581
failureThreshold: {{ .Values.smg.startupProbe.failureThreshold | default 30 }}
@@ -78,7 +84,7 @@ spec:
7884
livenessProbe:
7985
httpGet:
8086
path: /actuator/health/liveness
81-
port: http
87+
port: monitoring
8288
periodSeconds: {{ .Values.smg.livenessProbe.periodSeconds | default 10 }}
8389
timeoutSeconds: {{ .Values.smg.livenessProbe.timeoutSeconds | default 1 }}
8490
failureThreshold: {{ .Values.smg.livenessProbe.failureThreshold | default 3 }}
@@ -87,7 +93,7 @@ spec:
8793
readinessProbe:
8894
httpGet:
8995
path: /actuator/health/readiness
90-
port: http
96+
port: monitoring
9197
periodSeconds: {{ .Values.smg.readinessProbe.periodSeconds | default 10 }}
9298
timeoutSeconds: {{ .Values.smg.readinessProbe.timeoutSeconds | default 1 }}
9399
failureThreshold: {{ .Values.smg.readinessProbe.failureThreshold | default 3 }}

0 commit comments

Comments
 (0)