updated telegraf state
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
703c10c312
commit
5ee366fd68
@ -1,5 +1,12 @@
|
||||
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
||||
{%- from "telegraf/map.jinja" import telegraf with context %}
|
||||
{% macro cfg(value) -%}
|
||||
{% if value is not none -%}
|
||||
{% for paramname, paramvalue in value.items() -%}
|
||||
{{ ' ' }}{{ paramname }} = {% if paramvalue is sameas True or paramvalue is sameas False %}{{ paramvalue|string|lower }}{% elif paramvalue is iterable and paramvalue is not string %}[{{ paramvalue|join(",") }}]{% else %}"{{ paramvalue }}"{% endif %}
|
||||
{% endfor %}
|
||||
{%- endif %}
|
||||
{%- endmacro %}
|
||||
[global_tags]
|
||||
[agent]
|
||||
interval = "1m"
|
||||
@ -15,18 +22,10 @@
|
||||
|
||||
{% for name, value in telegraf.config.outputs.items() -%}
|
||||
[[outputs.{{ name }}]]
|
||||
{% if value is not none -%}
|
||||
{% for paramname, paramvalue in value.items() -%}
|
||||
{{ ' '}}{{ paramname }} = {% if paramvalue is sameas True or paramvalue is sameas False %}{{ paramvalue|string|lower }}{% elif paramvalue is iterable and paramvalue is not string %}[{{ paramvalue|join(",") }}]{% else %}"{{ paramvalue }}"{% endif %}
|
||||
{% endfor %}
|
||||
{%- endif %}
|
||||
{{ cfg(value) }}
|
||||
{% endfor %}
|
||||
|
||||
{% for name, value in telegraf.config.inputs.items() -%}
|
||||
[[inputs.{{ name }}]]
|
||||
{% if value is not none -%}
|
||||
{% for paramname, paramvalue in value.items() -%}
|
||||
{{ ' ' }}{{ paramname }} = {% if paramvalue is sameas True or paramvalue is sameas False %}{{ paramvalue|string|lower }}{% elif paramvalue is iterable and paramvalue is not string %}[{{ paramvalue|join(",") }}]{% else %}"{{ paramvalue }}"{% endif %}
|
||||
{% endfor %}
|
||||
{%- endif %}
|
||||
{{ cfg(value) }}
|
||||
{% endfor -%}
|
||||
|
Loading…
Reference in New Issue
Block a user