summaryrefslogtreecommitdiff
path: root/data/templates/monitoring/telegraf.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-07-08 07:26:25 +0200
committerGitHub <noreply@github.com>2022-07-08 07:26:25 +0200
commit44b1bdd3273dce4e74a5474c401ac7107950635b (patch)
tree801c37767245d09633e413124040d837904f3baf /data/templates/monitoring/telegraf.j2
parentff2665175fe58bff6f76f5ee57ebee6de838dbc5 (diff)
parent40adf40a7d07b70f5a9c5f17540ee0c42ce9323f (diff)
downloadvyos-1x-44b1bdd3273dce4e74a5474c401ac7107950635b.tar.gz
vyos-1x-44b1bdd3273dce4e74a5474c401ac7107950635b.zip
Merge pull request #1401 from sever-sever/T4411
monitoring: T4411: Migrate influxdb options to influxdb node
Diffstat (limited to 'data/templates/monitoring/telegraf.j2')
-rw-r--r--data/templates/monitoring/telegraf.j28
1 files changed, 4 insertions, 4 deletions
diff --git a/data/templates/monitoring/telegraf.j2 b/data/templates/monitoring/telegraf.j2
index a732fb5de..6b395692b 100644
--- a/data/templates/monitoring/telegraf.j2
+++ b/data/templates/monitoring/telegraf.j2
@@ -31,14 +31,14 @@
{% endif %}
### End Azure Data Explorer ###
{% endif %}
-{% if influxdb_configured is vyos_defined %}
+{% if influxdb is vyos_defined %}
### InfluxDB2 ###
[[outputs.influxdb_v2]]
- urls = ["{{ url }}:{{ port }}"]
+ urls = ["{{ influxdb.url }}:{{ influxdb.port }}"]
insecure_skip_verify = true
token = "$INFLUX_TOKEN"
- organization = "{{ authentication.organization }}"
- bucket = "{{ bucket }}"
+ organization = "{{ influxdb.authentication.organization }}"
+ bucket = "{{ influxdb.bucket }}"
### End InfluxDB2 ###
{% endif %}
{% if prometheus_client is vyos_defined %}