Commit f8e1b02a authored by Marc Cirauqui's avatar Marc Cirauqui Committed by Kubernetes Prow Robot

[stable/telegraf] Add prometheus client to telegraf service (#18226)

* Add prometheus client to telegraf service Signed-off-by: 's avatarMarc Cirauqui <mcirauqui@gmail.com> * Prometheus is an output plugin Signed-off-by: 's avatarMarc Cirauqui <mcirauqui@gmail.com>
parent 27cbda29
apiVersion: v1
name: telegraf
version: 1.1.7
version: 1.1.8
appVersion: 1.12
deprecated: false
description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
......
......@@ -43,6 +43,16 @@ spec:
{{- end }}
{{- end -}}
{{- end }}
{{- range $objectKey, $objectValue := .Values.config.outputs }}
{{- range $key, $value := . -}}
{{- $tp := typeOf $value -}}
{{- if eq $key "prometheus_client" }}
- port: {{ trimPrefix ":" $value.listen | int64 }}
targetPort: {{ trimPrefix ":" $value.listen | int64 }}
name: "prometheus-client"
{{- end }}
{{- end -}}
{{- end }}
selector:
app.kubernetes.io/name: {{ include "telegraf.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment