Skip to content

Commit

Permalink
wrong location for global.pipeline check
Browse files Browse the repository at this point in the history
Signed-off-by: reyesj2 <94730068+reyesj2@users.noreply.github.com>
  • Loading branch information
reyesj2 committed Jun 13, 2024
1 parent 9c31622 commit 80b1d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions salt/telegraf/etc/telegraf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,15 @@
# ## Use TLS but skip chain & host verification
# # insecure_skip_verify = false

{% if grains.role in ['so-searchnode','so-standalone','so-manager', 'so-managersearch', 'so-heavynode', 'so-receiver'] and GLOBALS.pipeline == "KAFKA" -%}
{% if grains.role in ['so-searchnode','so-standalone','so-manager', 'so-managersearch', 'so-heavynode', 'so-receiver'] -%}
[[inputs.logstash]]
url = "http://localhost:9600"
collect = ["pipelines"]
username = "{{ salt['pillar.get']('elasticsearch:auth:users:so_logstash_user:user') }}"
password = "{{ salt['pillar.get']('elasticsearch:auth:users:so_logstash_user:pass') }}"
{%- endif %}

{% if grains.role in ['so-manager','so-managersearch','so-standalone','so-receiver'] -%}
{% if grains.role in ['so-manager','so-managersearch','so-standalone','so-receiver'] and GLOBALS.pipeline == "KAFKA" -%}
[[inputs.jolokia2_agent]]
name_prefix= "kafka_"
urls = ["http://localhost:8778/jolokia"]
Expand Down

0 comments on commit 80b1d51

Please sign in to comment.