summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-02-08 08:38:12 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-02-08 08:38:12 +0000
commit4ddfe9b7e72e4f1e1fc8e70c5239bf09644e6d9b (patch)
treeda5ee5898cf44f18768312cb031595a785669cbc /data/templates
parentd96bab4e6da517f07133667834cd6f8bcfb5160f (diff)
downloadvyos-1x-4ddfe9b7e72e4f1e1fc8e70c5239bf09644e6d9b.tar.gz
vyos-1x-4ddfe9b7e72e4f1e1fc8e70c5239bf09644e6d9b.zip
monitoring: T3872: Add input filter for firewall InfluxDB2
Input filter for firewall allows to get bytes/counters from nftables in format, required for InfluxDB2
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/monitoring/telegraf.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/data/templates/monitoring/telegraf.tmpl b/data/templates/monitoring/telegraf.tmpl
index 465b58c80..d3145a500 100644
--- a/data/templates/monitoring/telegraf.tmpl
+++ b/data/templates/monitoring/telegraf.tmpl
@@ -17,7 +17,7 @@
[[outputs.influxdb_v2]]
urls = ["{{ url }}:{{ port }}"]
insecure_skip_verify = true
- token = "{{ authentication.token }}"
+ token = "$INFLUX_TOKEN"
organization = "{{ authentication.organization }}"
bucket = "{{ bucket }}"
[[inputs.cpu]]
@@ -52,6 +52,7 @@
syslog_standard = "RFC3164"
[[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"
]