Skip to content

Commit

Permalink
[prometheus-kafka-exporter] add ability to customize apiversion in se…
Browse files Browse the repository at this point in the history
…rvice monitor (#4389)

Signed-off-by: Rashmi Chandrashekar <[email protected]>
Co-authored-by: MH <[email protected]>
Co-authored-by: zeritti <[email protected]>
  • Loading branch information
3 people authored Mar 27, 2024
1 parent e910ea7 commit b3aa137
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-kafka-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appVersion: "v1.7.0"
description: A Helm chart to export the metrics from Kafka in Prometheus format using the kafka-exporter from https://github.com/danielqsj/kafka_exporter
name: prometheus-kafka-exporter
home: https://github.com/danielqsj/kafka_exporter
version: 2.9.0
version: 2.10.0
kubeVersion: ">=1.19.0-0"
sources:
- https://gkarthiks.github.io/helm-charts/charts/prometheus-kafka-exporter
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.prometheus.serviceMonitor.enabled }}
apiVersion: monitoring.coreos.com/v1
apiVersion: {{ .Values.prometheus.serviceMonitor.apiVersion }}
kind: ServiceMonitor
metadata:
name: {{ include "prometheus-kafka-exporter.fullname" . }}
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-kafka-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ prometheus:
serviceMonitor:
enabled: false
namespace: monitoring
apiVersion: "monitoring.coreos.com/v1"
interval: "30s"
# If serviceMonitor is enabled and you want prometheus to automatically register
# target using serviceMonitor, add additionalLabels with prometheus release name
Expand Down

0 comments on commit b3aa137

Please sign in to comment.