Skip to content

Commit

Permalink
[prometheus-rabbitmq-exporter] add target labels support (#3939)
Browse files Browse the repository at this point in the history
* [prometheus-rabbitmq-exporter] add target labels support

Signed-off-by: alex-souslik-hs <[email protected]>

* change if to with

Signed-off-by: alex-souslik-hs <[email protected]>

---------

Signed-off-by: alex-souslik-hs <[email protected]>
Signed-off-by: Alex Souslik <[email protected]>
Co-authored-by: MH <[email protected]>
Co-authored-by: André Bauer <[email protected]>
  • Loading branch information
3 people authored Jan 8, 2024
1 parent d914f5a commit f0dfe38
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-rabbitmq-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Rabbitmq metrics exporter for prometheus
name: prometheus-rabbitmq-exporter
version: 1.9.0
version: 1.10.0
appVersion: v0.29.0
home: https://github.com/kbudde/rabbitmq_exporter
sources:
Expand Down
3 changes: 3 additions & 0 deletions charts/prometheus-rabbitmq-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
chart: {{ template "prometheus-rabbitmq-exporter.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- with .Values.service.labels }}
{{ toYaml . | indent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ spec:
{{- range .Values.prometheus.monitor.namespace }}
- {{ . }}
{{- end }}
{{- with .Values.prometheus.monitor.targetLabels }}
targetLabels:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/prometheus-rabbitmq-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ service:
type: ClusterIP
externalPort: 9419
internalPort: 9419
labels: {}

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 Expand Up @@ -74,6 +76,8 @@ prometheus:
namespace: []
metricRelabelings: []
relabelings: []
targetLabels: []

rules:
enabled: false
additionalLabels: {}
Expand Down

0 comments on commit f0dfe38

Please sign in to comment.