-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from stvnwrgs/feature/add_extra_plugins_to_tele…
…grafd_folder Feature/add extra plugins to telegrafd folder
- Loading branch information
Showing
4 changed files
with
70 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
|
||
{% if telegraf_plugins_extra is defined and telegraf_plugins_extra is iterable %} | ||
{% for item in telegraf_plugins_extra %} | ||
[[inputs.{{ item.plugin }}]] | ||
{% if item.interval is defined %} | ||
interval = "{{ item.interval }}s" | ||
{% endif %} | ||
{% if item.config is defined and item.config is iterable %} | ||
{% for items in item.config %} | ||
{{ items }} | ||
{% endfor %} | ||
{% endif %} | ||
{% if item.tagpass is defined and item.tagpass is iterable %} | ||
[{{ item.plugin }}.tagpass] | ||
{% for items in item.tagpass %} | ||
{{ items }} | ||
{% endfor %} | ||
{% endif %} | ||
{% if item.tagdrop is defined and item.tagdrop is iterable %} | ||
[{{ item.plugin }}.tagdrop] | ||
{% for items in item.tagdrop %} | ||
{{ items }} | ||
{% endfor %} | ||
{% endif %} | ||
{% if item.pass is defined and item.pass is iterable %} | ||
[{{ item.plugin }}.pass] | ||
{% for items in item.pass %} | ||
{{ items }} | ||
{% endfor %} | ||
{% endif %} | ||
{% if item.drop is defined and item.drop is iterable %} | ||
[{{ item.plugin }}.drop] | ||
{% for items in item.drop %} | ||
{{ items }} | ||
{% endfor %} | ||
{% endif %} | ||
{% if item.specifications is defined and item.specifications is iterable %} | ||
[[{{item.plugin}}.specifications]] | ||
{% for items in item.specifications %} | ||
{{ items }} | ||
{% endfor %} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters