Skip to content

Commit 2e60c05

Browse files
authored
Merge pull request #430 from rashmichandrashekar/rashmi/update-group
Adding api group in service monitor for Azure managed prometheus
2 parents b66d284 + e2fad54 commit 2e60c05

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

charts/kafka-exporter/templates/servicemonitor.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{{- if .Values.prometheus.serviceMonitor.enabled }}
2+
{{- if .Values.azuremanagedprometheus.use_azuremanagedprometheus }}
3+
apiVersion: azmonitoring.coreos.com/v1
4+
{{- else }}
25
apiVersion: monitoring.coreos.com/v1
6+
{{- end }}
37
kind: ServiceMonitor
48
metadata:
59
name: {{ include "kafka-exporter.fullname" . }}

charts/kafka-exporter/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ datadog:
6464
{"kafka_consumergroup_current_offset": "kafka_consumergroup_current_offset"}
6565
]
6666

67+
# Add support for azure managed prometheus by creating service monitor with the supported api group
68+
azuremanagedprometheus:
69+
use_azuremanagedprometheus: false
70+
6771
resources: {}
6872
# We usually recommend not to specify default resources and to leave this as a conscious
6973
# choice for the user. This also increases chances charts run on environments with little

0 commit comments

Comments
 (0)