Skip to content

Commit f72ebd5

Browse files
authored
feat(ogmios): add podTargetLabels support to PodMonitor (#356)
- Add podTargetLabels field to PodMonitor spec for propagating pod labels (alias, app, az, group, network) to Prometheus metrics - Add podTargetLabels default (empty list) to values.yaml - Bump chart version to 0.0.10 Signed-off-by: wcatz <waynecataldo@gmail.com>
1 parent e919cec commit f72ebd5

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

charts/ogmios/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: ogmios
33
description: Creates an Ogmios API service with SOCAT sidecar
4-
version: 0.0.9
4+
version: 0.0.10
55
appVersion: v6.14.0
66
maintainers:
77
- name: aurora

charts/ogmios/templates/podmonitor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ spec:
1515
namespaceSelector:
1616
matchNames:
1717
- {{ .Release.Namespace }}
18+
{{- with .Values.podMonitor.podTargetLabels }}
19+
podTargetLabels:
20+
{{- toYaml . | nindent 4 }}
21+
{{- end }}
1822
podMetricsEndpoints:
1923
{{- toYaml .Values.podMonitor.podMetricsEndpoints | nindent 4 }}
2024
{{- end }}

charts/ogmios/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ serviceAccountName: ""
5858
podMonitor:
5959
enabled: false
6060
extraLabels: {}
61+
podTargetLabels: []
6162
podMetricsEndpoints:
6263
# port in Podmonitor should match containerPort name in deployment
6364
- port: http

0 commit comments

Comments
 (0)