Skip to content

Commit

Permalink
Update servicemonitor.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
hibohra1398 authored Sep 26, 2024
1 parent 9c37794 commit 982c3a1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions helm/templates/broker/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{- if ( .Values.broker.servicemonitor.enabled ) }}
{{- if and ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) ( .Values.broker.enabled ) ( .Values.broker.prometheus.jmx.enabled ) }}
{{- if and ( .Values.broker.servicemonitor.enabled ) ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) ( .Values.broker.enabled ) ( .Values.broker.prometheus.jmx.enabled ) }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down Expand Up @@ -39,4 +38,3 @@ spec:
matchNames:
- {{ .Release.Namespace }}
{{- end }}
{{- end }}

0 comments on commit 982c3a1

Please sign in to comment.