From fcb6a47e8c39a4d7a0bd3d3f75ffd4357154c6cf Mon Sep 17 00:00:00 2001 From: reyesj2 <94730068+reyesj2@users.noreply.github.com> Date: Sun, 26 May 2024 21:10:41 -0400 Subject: [PATCH] Remove redis.sh telegraf script when Kafka is global pipeline Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com> --- salt/telegraf/map.jinja | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/salt/telegraf/map.jinja b/salt/telegraf/map.jinja index b56c8a64d..1d92b8b5b 100644 --- a/salt/telegraf/map.jinja +++ b/salt/telegraf/map.jinja @@ -22,3 +22,10 @@ {% endif %} {% endif %} + +{% if GLOBALS.pipeline != 'REDIS' %} +{# When global pipeline is not REDIS remove redis.sh script. KAFKA metrics are collected via jolokia agent. Config in telegraf.conf #} +{% if GLOBALS.role in ['so-standalone', 'so-manager', 'so-managersearch', 'so-receiver', 'so-heavynode'] %} +{% do TELEGRAFMERGED.scripts[GLOBALS.role.split('-')[1]].remove('redis.sh') %} +{% endif %} +{% endif %}