From c71efaa7b5bf69a9d2fb6027d60ba1bb120b18af Mon Sep 17 00:00:00 2001 From: hamps Date: Fri, 24 May 2024 15:12:32 +0200 Subject: [PATCH] [telegraf] Add support for Cisco Model-Driven Telemetry (cisco_telemetry_mdt) (#548) --- charts/telegraf/Chart.yaml | 2 +- charts/telegraf/templates/service.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/telegraf/Chart.yaml b/charts/telegraf/Chart.yaml index 790446f8..3bf8d602 100755 --- a/charts/telegraf/Chart.yaml +++ b/charts/telegraf/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: telegraf -version: 1.8.47 +version: 1.8.48 appVersion: 1.30.3 deprecated: false description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics. diff --git a/charts/telegraf/templates/service.yaml b/charts/telegraf/templates/service.yaml index 2b7ae141..a3ace349 100644 --- a/charts/telegraf/templates/service.yaml +++ b/charts/telegraf/templates/service.yaml @@ -84,6 +84,12 @@ spec: name: {{ printf "%s-%s" "socket-listener" (regexFind "[0-9]+$" $value.service_address) }} {{- end }} {{- end }} + {{- if eq $key "cisco_telemetry_mdt" }} + - port: {{ trimPrefix ":" $value.service_address | int64 }} + targetPort: {{ trimPrefix ":" $value.service_address | int64 }} + protocol: "TCP" + name: "cisco-telemetry-mdt" + {{- end }} {{- end -}} {{- end }} {{- range $objectKey, $objectValue := .Values.config.outputs }}