paulbsd-salt/states/telegraf/telegraf.service.j2
Paul Lecuq 1b59cdacdd * Update salt states
- bl module updated
- borg state updated
- config state updated
- netbox state updated
- nginx state updated
- misc updates
2022-02-21 13:52:46 +01:00

19 lines
573 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 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