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]