Skip to content

Commit

Permalink
[prometheus-rabbitmq-exporter] Make it possible to add podLabels and …
Browse files Browse the repository at this point in the history
…priorityClass (prometheus-community#513)

* [prometheus-rabbitmq-exporter] Add the possibility to specify a priority class

Signed-off-by: machine424 <[email protected]>

* [prometheus-rabbitmq-exporter] Make it possible to add labels to the pods

Signed-off-by: machine424 <[email protected]>

Co-authored-by: ayoub mrini <[email protected]>
  • Loading branch information
machine424 and ayoub mrini authored Jan 21, 2021
1 parent 038b188 commit f766f9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/prometheus-rabbitmq-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
labels:
app: {{ template "prometheus-rabbitmq-exporter.name" . }}
release: {{ .Release.Name }}
{{- if .Values.podLabels }}
{{ toYaml .Values.podLabels | indent 8 }}
{{- end }}
annotations:
{{ toYaml .Values.annotations | indent 8 }}
spec:
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-rabbitmq-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ rabbitmq:
timeout: 30
max_queues: 0

podLabels: {}

annotations: {}
# prometheus.io/scrape: "true"
# prometheus.io/path: "/metrics"
Expand Down

0 comments on commit f766f9e

Please sign in to comment.