Skip to content
Open
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
7 changes: 6 additions & 1 deletion charts/kafka-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,12 @@ spec:
app.kubernetes.io/instance: {{ .Release.Name }}
template:
metadata:
{{- if eq .Values.datadog.use_datadog true }}
{{- if or (eq .Values.datadog.use_datadog true) (.Values.podAnnotations) }}
annotations:
{{- if .Values.podAnnotations }}
{{- .Values.podAnnotations | toYaml | nindent 8 }}
{{- end }}
{{- if eq .Values.datadog.use_datadog true }}
ad.datadoghq.com/{{ .Chart.Name }}.check_names: |
["openmetrics"]
ad.datadoghq.com/{{ .Chart.Name }}.init_configs: |
Expand All @@ -32,6 +36,7 @@ spec:
"metrics": {{ .Values.datadog.metrics | toJson | nindent 16 -}}
}
]
{{- end }}
{{- end }}
labels:
app.kubernetes.io/name: {{ include "kafka-exporter.name" . }}
Expand Down
1 change: 1 addition & 0 deletions charts/kafka-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ prometheus:

labels: {}
podLabels: {}
podAnnotations: {}

# Adds in Datadog annotations needed to scrape the prometheus endpoint.
# prefix is required. If added, will provide a metric such as test.kafka_brokers.
Expand Down