Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding api group in service monitor for Azure managed prometheus #430

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/kafka-exporter/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{- if .Values.prometheus.serviceMonitor.enabled }}
{{- if .Values.azuremanagedprometheus.use_azuremanagedprometheus }}
apiVersion: azmonitoring.coreos.com/v1
{{- else }}
apiVersion: monitoring.coreos.com/v1
{{- end }}
kind: ServiceMonitor
metadata:
name: {{ include "kafka-exporter.fullname" . }}
Expand Down
4 changes: 4 additions & 0 deletions charts/kafka-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ datadog:
{"kafka_consumergroup_current_offset": "kafka_consumergroup_current_offset"}
]

# Add support for azure managed prometheus by creating service monitor with the supported api group
azuremanagedprometheus:
use_azuremanagedprometheus: false

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand Down
Loading