{% for name, value in telegraf.config.inputs.items() %}
[[inputs.{{ name }}]]
{%- if value['params'] is defined %}
{%- for paramname, paramvalue in value['params'].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 %}