From 6f42c607f7da0ee6eb2bca4106acf266dad7f2f7 Mon Sep 17 00:00:00 2001 From: Mike Reeves Date: Thu, 13 Feb 2020 15:08:00 -0500 Subject: [PATCH] Update telegraf.conf --- salt/common/telegraf/etc/telegraf.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/salt/common/telegraf/etc/telegraf.conf b/salt/common/telegraf/etc/telegraf.conf index 7d65073a1..90f43cd19 100644 --- a/salt/common/telegraf/etc/telegraf.conf +++ b/salt/common/telegraf/etc/telegraf.conf @@ -16,7 +16,7 @@ {%- set MASTER = grains['master'] %} {% set NODEIP = salt['pillar.get']('node:mainip', '') %} {% set HELIX_API_KEY = salt['pillar.get']('fireeye:helix:api_key', '') %} - +{% set UNIQUEID = salt['pillar.get']('sensor:uniqueid', '') %} # Global tags can be specified here in key="value" format. [global_tags] @@ -25,6 +25,9 @@ ## Environment variables can be used as tags, and throughout the config file # user = "$USER" +{% if grains['role'] == 'so-helix' %} + meta_cbid = {{ UNIQUEID }} +{% endif %} # Configuration for telegraf agent [agent]