diff --git a/salt/telegraf/etc/telegraf.conf b/salt/telegraf/etc/telegraf.conf index a7be4d8a2..af3474913 100644 --- a/salt/telegraf/etc/telegraf.conf +++ b/salt/telegraf/etc/telegraf.conf @@ -615,29 +615,18 @@ # ## Use TLS but skip chain & host verification # # insecure_skip_verify = false -{% if TRUE_CLUSTER %} - {% if grains.role == 'so-manager' %} -[[inputs.elasticsearch]] - servers = ["https://{{ MANAGER }}:9200"] - insecure_skip_verify = true - local = false - cluster_health = true - cluster_stats = true - {% endif %} - -{% else %} # # Read stats from one or more Elasticsearch servers or clusters - {% if grains['role'] in ['so-manager', 'so-eval', 'so-managersearch', 'so-standalone'] %} +{% if grains['role'] in ['so-manager', 'so-eval', 'so-managersearch', 'so-standalone'] %} [[inputs.elasticsearch]] servers = ["https://{{ MANAGER }}:9200"] insecure_skip_verify = true - {% elif grains['role'] in ['so-node', 'so-hotnode', 'so-warmnode', 'so-heavynode'] %} +{% elif grains['role'] in ['so-node', 'so-hotnode', 'so-warmnode', 'so-heavynode'] %} [[inputs.elasticsearch]] servers = ["https://{{ NODEIP }}:9200"] insecure_skip_verify = true - {% endif %} {% endif %} + # # ## Timeout for HTTP requests to the elastic search server(s) # http_timeout = "5s"