paulbsd-salt/states/telegraf/telegraf.service.j2
2020-07-10 00:58:55 +02:00

17 lines
504 B
Django/Jinja

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