Skip to content

Commit

Permalink
helm: add field to disable service-monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
helder-moreira committed Feb 16, 2022
1 parent ee77570 commit 1eeb3b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helm/templates/service-monitor.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.serviceMonitorEnabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand All @@ -15,4 +16,5 @@ spec:
- {{ .Release.Namespace }}
selector:
matchLabels:
{{- include "chart.labels" . | indent 6 }}
{{- include "chart.labels" . | indent 6 }}
{{- end }}
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ redisUrl: redis-master:6379

debug: true

serviceMonitorEnabled: true
serviceMonitorLabels:
release: monitoring-stack

0 comments on commit 1eeb3b3

Please sign in to comment.