From cb576e362d6257735b736d93073c225713b82a63 Mon Sep 17 00:00:00 2001 From: Angelo Fausti Date: Thu, 3 Oct 2024 10:46:52 -0700 Subject: [PATCH] Exclude telegraf internal metrics from default output - Exclude measurements matching "telegraf_" from the default output using the namedrop filter. --- .../charts/app-metrics/templates/telegraf-configmap.yaml | 1 + .../charts/telegraf-kafka-consumer/templates/_helpers.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/applications/sasquatch/charts/app-metrics/templates/telegraf-configmap.yaml b/applications/sasquatch/charts/app-metrics/templates/telegraf-configmap.yaml index e8a60a4ae..472148364 100644 --- a/applications/sasquatch/charts/app-metrics/templates/telegraf-configmap.yaml +++ b/applications/sasquatch/charts/app-metrics/templates/telegraf-configmap.yaml @@ -19,6 +19,7 @@ data: omit_hostname = true [[outputs.influxdb]] + namedrop = ["telegraf_*"] urls = [ {{ .Values.influxdb.url | quote }} ] diff --git a/applications/sasquatch/charts/telegraf-kafka-consumer/templates/_helpers.tpl b/applications/sasquatch/charts/telegraf-kafka-consumer/templates/_helpers.tpl index 11dae28e5..f2756bc5e 100644 --- a/applications/sasquatch/charts/telegraf-kafka-consumer/templates/_helpers.tpl +++ b/applications/sasquatch/charts/telegraf-kafka-consumer/templates/_helpers.tpl @@ -21,6 +21,7 @@ data: omit_hostname = true [[outputs.influxdb]] + namedrop = ["telegraf_*"] urls = [ {{ .influxdbUrl | quote }} ]