From 56b92afb6b669ecc5b12a1223032021df8a3bb61 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Tue, 12 May 2020 16:54:38 -0400 Subject: [PATCH] fix telegraf.conf for different roles --- salt/telegraf/etc/telegraf.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/salt/telegraf/etc/telegraf.conf b/salt/telegraf/etc/telegraf.conf index f65d826f0..6a4945d5f 100644 --- a/salt/telegraf/etc/telegraf.conf +++ b/salt/telegraf/etc/telegraf.conf @@ -616,7 +616,7 @@ # # Read stats from one or more Elasticsearch servers or clusters -{% if grains['role'] == 'so-master' or grains['role'] == 'so-eval' %} +{% if grains['role'] in ['so-master', 'so-eval', , 'so-mastersearch'] %} [[inputs.elasticsearch]] # ## specify a list of one or more Elasticsearch servers @@ -624,7 +624,7 @@ # # servers = ["http://user:pass@localhost:9200"] servers = ["http://{{ MASTER }}:9200"] {% endif %} -{% if grains['role'] == 'so-node' %} +{% if grains['role'] in ['so-searchnode', 'so-hotnode', 'so-warmnode', 'so-heavynode'] %} [[inputs.elasticsearch]] servers = ["http://{{ NODEIP }}:9200"] {% endif %} @@ -667,14 +667,14 @@ # # Read metrics from one or more commands that can output to stdout # ## Commands array -{% if grains['role'] == 'so-master' %} +{% if grains['role'] in ['so-master', 'so-mastersearch'] %} [[inputs.exec]] commands = [ "/scripts/redis.sh", "/scripts/influxdbsize.sh" ] data_format = "influx" -{% elif grains['role'] == 'so-sensor' %} +{% elif grains['role'] in ['so-sensor', 'so-heavynode'] %} [[inputs.exec]] commands = [ "/scripts/stenoloss.sh",