Skip to content

Commit 1100353

Browse files
committed
feat(kupo): add podTargetLabels support to PodMonitor
- Add podTargetLabels field to PodMonitor spec for propagating pod labels to Prometheus metrics - Bump chart version to 0.0.7 Signed-off-by: wcatz <waynecataldo@gmail.com>
1 parent a849d88 commit 1100353

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

charts/kupo/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: kupo
33
description: "A Helm chart for deploying Kupo - fast, lightweight & configurable chain-index for Cardano"
4-
version: 0.0.6
4+
version: 0.0.7
55
appVersion: "2.11.0"
66

77
sources:

charts/kupo/templates/podmonitor.yaml

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

charts/kupo/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ kupo:
8989
- port: http
9090
path: /health
9191
interval: 15s
92+
podTargetLabels: []
9293
labels: {}
9394
annotations: {}
9495

0 commit comments

Comments
 (0)