Skip to content

Commit 8589e95

Browse files
Merge PR #23: K8ssandra native Prometheus telemetry (Simone Maiorani)
Adds an optional telemetry.prometheus block to the K8ssandraCluster CR, gated by .Values.cassandra.telemetry. When enabled, K8ssandra emits a ServiceMonitor for Cassandra metrics that any cluster-side Prometheus operator can scrape natively, with no separate ServiceMonitor manifest to maintain. The default values block + configuration.md documentation are added in the follow-up commit. Co-authored-by: Simone Maiorani <simone.maiorani@e4company.com>
2 parents b5aafbc + 566ef5d commit 8589e95

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)