Telegraf inputs.exec custom scripts

The file
/usr/share/vyos/templates/telegraf/telegraf.j2
contains section in the end:

{% if influxdb_configured is vyos_defined %}
[[inputs.exec]]
commands = [
“{{ custom_scripts_dir }}/show_firewall_input_filter.py”,
“{{ custom_scripts_dir }}/show_interfaces_input_filter.py”,
“{{ custom_scripts_dir }}/vyos_services_input_filter.py”
]
timeout = “10s”
data_format = “influx”
{% endif %}

Can you tell what the condition “if influxdb_configured is vyos_defined” means? I have influxdb configured but this section is not present in /run/telegraf/telegraf.conf.
What would be the best way to add my custom script to inputs.exec section of telegraf configuration ?