summaryrefslogtreecommitdiff
path: root/data/templates/monitoring/override.conf.tmpl
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-09-29 14:15:38 +0000
committerViacheslav <v.gletenko@vyos.io>2021-09-29 14:15:38 +0000
commit67c25c6468b56dc78ed2163b65feae08c9e248a3 (patch)
tree42987f4acc50a5480777f84e9a8c8e400b4633ff /data/templates/monitoring/override.conf.tmpl
parent6935c263f5022896e96bec9daa8a5ba29b04b51b (diff)
downloadvyos-1x-67c25c6468b56dc78ed2163b65feae08c9e248a3.tar.gz
vyos-1x-67c25c6468b56dc78ed2163b65feae08c9e248a3.zip
monitoring: T3872: Add templates for telegraf
Diffstat (limited to 'data/templates/monitoring/override.conf.tmpl')
-rw-r--r--data/templates/monitoring/override.conf.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/templates/monitoring/override.conf.tmpl b/data/templates/monitoring/override.conf.tmpl
new file mode 100644
index 000000000..63f6d7391
--- /dev/null
+++ b/data/templates/monitoring/override.conf.tmpl
@@ -0,0 +1,7 @@
+[Unit]
+After=vyos-router.service
+ConditionPathExists=/run/telegraf/vyos-telegraf.conf
+[Service]
+Environment=INFLUX_TOKEN={{ authentication.token }}
+CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN
+AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN