Skip to content

Commit 566ef5d

Browse files
Simone Maioraniclaude
andcommitted
feat(helm): expose K8ssandra native Prometheus telemetry via values
Add opt-in `cassandra.telemetry.prometheus` block to the K8ssandraCluster template so users can enable the native ServiceMonitor generated by the K8ssandra Operator without maintaining a separate manifest. When `cassandra.telemetry.prometheus.enabled: true`, the operator creates a ServiceMonitor automatically. The block is guarded by `{{- with }}` so existing deployments that omit the key are unaffected (retrocompatible). Example values: cassandra: telemetry: prometheus: enabled: true commonLabels: release: prometheus # match kube-prometheus-stack selector Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 40064cc commit 566ef5d

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

deploy/helm/examon/templates/k8ssandra-cluster.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ spec:
3636
racks:
3737
{{- toYaml .Values.cassandra.datacenters.dc1.racks | nindent 10 }}
3838
{{- end }}
39+
{{- with .Values.cassandra.telemetry }}
40+
telemetry:
41+
prometheus:
42+
enabled: {{ .prometheus.enabled | default false }}
43+
{{- with .prometheus.commonLabels }}
44+
commonLabels:
45+
{{- toYaml . | nindent 14 }}
46+
{{- end }}
47+
{{- end }}
3948
{{- if .Values.cassandra.reaper }}
4049
reaper:
4150
autoScheduling:

0 commit comments

Comments
 (0)