Skip to content

Commit

Permalink
feat(base-cluster): enable servicemonitor if prometheus is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
tasches committed Jan 17, 2024
1 parent 1651273 commit 2cab39a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/base-cluster/templates/backup/velero.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@ spec:
volumeSnapshotLocation: []
metrics:
serviceMonitor:
{{- if .Values.monitoring.prometheus.enabled }}
enabled: true
{{- end }}
additionalLabels: {{- .Values.monitoring.labels | toYaml | nindent 10 }}
{{- end }}

0 comments on commit 2cab39a

Please sign in to comment.