Skip to content

Commit

Permalink
[prometheus-druid-exporter] support podAnnotations (prometheus-commun…
Browse files Browse the repository at this point in the history
…ity#306)

* support pod annotations

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

* raise minor version to 0.9.0

Signed-off-by: awatercolorpen <[email protected]>
  • Loading branch information
AWaterColorPen authored Nov 21, 2020
1 parent 52dfc37 commit 11924f3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-druid-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ appVersion: "v0.8.0"
description: Druid exporter to monitor druid metrics with Prometheus
engine: gotpl
name: prometheus-druid-exporter
version: 0.8.1
version: 0.9.0
home: https://github.com/opstree/druid-exporter
maintainers:
- email: [email protected]
Expand Down
7 changes: 5 additions & 2 deletions charts/prometheus-druid-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
{{- if not .Values.serviceMonitor.enabled }}
annotations:
{{- if not .Values.serviceMonitor.enabled }}
prometheus.io/path: /metrics
prometheus.io/port: metrics
prometheus.io/scrape: "true"
{{- end }}
{{- end }}
{{- if .Values.podAnnotations }}
{{ toYaml .Values.podAnnotations | nindent 8 }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "prometheus-druid-exporter.fullname" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-druid-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ image:

annotations: {}

podAnnotations: {}

druidURL: http://druid.opstreelabs.in
logLevel: info
logFormat: json
Expand Down

0 comments on commit 11924f3

Please sign in to comment.