summaryrefslogtreecommitdiff
path: root/data/templates/telegraf/override.conf.j2
blob: 7e3e4aaf51bbda125fe80793e686bb25b2c18d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% set vrf_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %}
[Unit]
After=
After=vyos-router.service
ConditionPathExists=/run/telegraf/telegraf.conf

[Service]
ExecStart=
ExecStart={{ vrf_command }}/usr/bin/telegraf --config /run/telegraf/telegraf.conf --config-directory /etc/telegraf/telegraf.d --pidfile /run/telegraf/telegraf.pid
PIDFile=/run/telegraf/telegraf.pid
EnvironmentFile=
Environment=INFLUX_TOKEN={{ influxdb.authentication.token }}
CapabilityBoundingSet=CAP_NET_RAW CAP_NET_ADMIN CAP_SYS_ADMIN CAP_BPF CAP_DAC_OVERRIDE
AmbientCapabilities=CAP_NET_RAW CAP_NET_ADMIN
Restart=always
RestartSec=10