mirror of
https://github.com/dj-wasabi/ansible-telegraf.git
synced 2025-07-17 08:46:37 +00:00
Add processors section in Telegraf config
telegraf_processors: - processor: rename - processor: rename.replace config: - tag = "message" - dest = "messages"
This commit is contained in:
@ -112,4 +112,19 @@
|
|||||||
# No plugins configured, added a mem plugin so telegraf doesn't stop working.
|
# No plugins configured, added a mem plugin so telegraf doesn't stop working.
|
||||||
[[inputs.mem]]
|
[[inputs.mem]]
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# PROCESSORS #
|
||||||
|
###############################################################################
|
||||||
|
|
||||||
|
{% if telegraf_processors is defined and telegraf_processors is iterable %}
|
||||||
|
{% for item in telegraf_processors %}
|
||||||
|
[[processors.{{ item.processor }}]]
|
||||||
|
{% if item.config is defined and item.config is iterable %}
|
||||||
|
{% for items in item.config %}
|
||||||
|
{{ items }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
Reference in New Issue
Block a user