2022-02-21 13:52:46 +01:00
|
|
|
{%- from "telegraf/map.jinja" import telegraf with context -%}
|
2020-07-30 14:10:22 +02:00
|
|
|
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
|
2020-07-10 00:58:55 +02:00
|
|
|
[Unit]
|
2024-03-10 11:07:58 +01:00
|
|
|
Description=The plugin-driven server agent for reporting metrics
|
2020-07-10 00:58:55 +02:00
|
|
|
Documentation=https://github.com/influxdata/telegraf
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=-/etc/default/telegraf
|
2024-03-20 14:32:46 +01:00
|
|
|
ExecStart=/usr/local/bin/telegraf --config /etc/telegraf/%i.conf
|
2020-07-10 00:58:55 +02:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
Restart=on-failure
|
|
|
|
RestartForceExitStatus=SIGPIPE
|
|
|
|
KillMode=control-group
|
|
|
|
|
|
|
|
[Install]
|
2020-07-30 14:10:22 +02:00
|
|
|
WantedBy=multi-user.target
|