paulbsd-salt/states/telegraf/templates/telegraf.service.j2
Paul Lecuq 2931ebd8bf
Some checks failed
continuous-integration/drone/push Build is failing
updated telegraf state
2024-03-20 14:32:46 +01:00

18 lines
538 B
Django/Jinja

{%- from "telegraf/map.jinja" import telegraf with context -%}
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
[Unit]
Description=The plugin-driven server agent for reporting metrics
Documentation=https://github.com/influxdata/telegraf
After=network.target
[Service]
EnvironmentFile=-/etc/default/telegraf
ExecStart=/usr/local/bin/telegraf --config /etc/telegraf/%i.conf
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartForceExitStatus=SIGPIPE
KillMode=control-group
[Install]
WantedBy=multi-user.target