From 54132a9baa0100fb312de1b0a416e7a1acc25738 Mon Sep 17 00:00:00 2001 From: Paul Lecuq Date: Wed, 20 Mar 2024 15:18:54 +0100 Subject: [PATCH] updated telegraf state --- states/telegraf/defaults.yaml | 4 ++-- states/telegraf/templates/telegraf.conf.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/states/telegraf/defaults.yaml b/states/telegraf/defaults.yaml index 667091d..73c2079 100644 --- a/states/telegraf/defaults.yaml +++ b/states/telegraf/defaults.yaml @@ -10,14 +10,14 @@ telegraf: config: main: interval: "1m" - round_interval: true + round_interval: "true" metric_batch_size: 1000 metric_buffer_limit: 10000 collection_jitter: "0s" flush_interval: "30s" flush_jitter: "0s" precision: "" - omit_hostname: false + omit_hostname: "false" outputs: influxdb: urls: diff --git a/states/telegraf/templates/telegraf.conf.j2 b/states/telegraf/templates/telegraf.conf.j2 index e145800..039a492 100644 --- a/states/telegraf/templates/telegraf.conf.j2 +++ b/states/telegraf/templates/telegraf.conf.j2 @@ -11,14 +11,14 @@ [agent] hostname = "{{ salt['grains.get']('fqdn') }}" interval = "{{ config.interval|default('1m') }}" - round_interval = {{ config.round_interval|default(true) }} + round_interval = {{ config.round_interval|default('true') }} metric_batch_size = {{ config.metric_batch_size|default(1000) }} metric_buffer_limit = {{ config.metric_buffer_limit|default(10000) }} collection_jitter = "{{ config.collection_jitter|default('0s') }}" flush_interval = "{{ config.flush_interval|default('30s') }}" flush_jitter = "{{ config.flush_jitter|default('0s') }}" precision = "{{ config.precision|default('') }}" - omit_hostname = {{ config.omit_hostname|default(false) }} + omit_hostname = {{ config.omit_hostname|default('false') }} {% for name, value in config.outputs.items() -%} [[outputs.{{ name }}]]