summaryrefslogtreecommitdiff
path: root/data/templates/telegraf/telegraf.j2
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-07-02 15:40:11 +0200
committerGitHub <noreply@github.com>2024-07-02 15:40:11 +0200
commit96aa3a695b937bd40ade0d53dee14c264f9baabd (patch)
tree8cf07268c0c876b3036e65ab7dcf682963d76f0d /data/templates/telegraf/telegraf.j2
parent134889fdced187859c7d4d1630c248e6f434abe5 (diff)
parent536613dc03d7b2ca6e9ba87a0b2db05396845530 (diff)
downloadvyos-1x-96aa3a695b937bd40ade0d53dee14c264f9baabd.tar.gz
vyos-1x-96aa3a695b937bd40ade0d53dee14c264f9baabd.zip
Merge pull request #3751 from vyos/mergify/bp/circinus/pr-3748
T6523: Telegraf use nft scripts only if the firewall configured (backport #3748)
Diffstat (limited to 'data/templates/telegraf/telegraf.j2')
-rw-r--r--data/templates/telegraf/telegraf.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/data/templates/telegraf/telegraf.j2 b/data/templates/telegraf/telegraf.j2
index f382dbf2e..535e3a347 100644
--- a/data/templates/telegraf/telegraf.j2
+++ b/data/templates/telegraf/telegraf.j2
@@ -130,7 +130,9 @@ metric_name_label = "{{ loki.metric_name_label }}"
{% if influxdb is vyos_defined %}
[[inputs.exec]]
commands = [
+{% if nft_chains is vyos_defined %}
"{{ custom_scripts_dir }}/show_firewall_input_filter.py",
+{% endif %}
"{{ custom_scripts_dir }}/show_interfaces_input_filter.py",
"{{ custom_scripts_dir }}/vyos_services_input_filter.py"
]