From b496810b63fc6d0d8bc3dba0092b402554a6ec92 Mon Sep 17 00:00:00 2001 From: m0duspwnens Date: Wed, 20 Oct 2021 14:46:47 -0400 Subject: [PATCH] add redis and logstash input plugins to telegraf --- salt/telegraf/etc/telegraf.conf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/salt/telegraf/etc/telegraf.conf b/salt/telegraf/etc/telegraf.conf index b04b1549d..71fc610b4 100644 --- a/salt/telegraf/etc/telegraf.conf +++ b/salt/telegraf/etc/telegraf.conf @@ -639,6 +639,21 @@ insecure_skip_verify = true {% endif %} +{% if grains.role in ['so-node','so-standalone','so-manager', 'so-managersearch', 'so-heavynode'] -%} +[[inputs.logstash]] + url = "http://localhost:9600" + collect = ["pipelines"] + {% if salt['pillar.get']('elasticsearch:auth:enabled') is sameas true %} + username = "{{ salt['pillar.get']('elasticsearch:auth:so_logstash_user:user') }}" + password = "{{ salt['pillar.get']('elasticsearch:auth:so_logstash_user:pass') }}" + {% endif %} +{%- endif %} + +{% if grains.role in ['so-eval','so-standalone','so-manager', 'so-managersearch', 'so-heavynode'] -%} +[[inputs.redis]] + servers = "tcp://localhost:5000" +{%- endif %} + # # ## Timeout for HTTP requests to the elastic search server(s) # http_timeout = "5s"