Skip to content

Commit

Permalink
Merge pull request #1276 from MiguelNdeCarvalho/fix-clickhouse-metrics
Browse files Browse the repository at this point in the history
Fix ServiceMonitor for Clickhouse Metrics
  • Loading branch information
Slach authored Nov 21, 2023
2 parents 6c93b2c + 98a2f43 commit a49fd6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/helm/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "altinity-clickhouse-operator.fullname" . }}
name: {{ printf "%s-clickhouse-metrics" (include "altinity-clickhouse-operator.fullname" .) }}
namespace: {{ .Release.Namespace }}
labels:
{{- include "altinity-clickhouse-operator.labels" . | nindent 4 }}
Expand All @@ -11,7 +11,7 @@ metadata:
{{- end }}
spec:
endpoints:
- port: clickhouse-operator-metrics
- port: clickhouse-metrics
selector:
matchLabels:
{{- include "altinity-clickhouse-operator.selectorLabels" . | nindent 6 }}
Expand Down

0 comments on commit a49fd6d

Please sign in to comment.