Skip to content

Commit

Permalink
telegraf service tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Coustet committed Apr 7, 2023
1 parent 4f8f0e8 commit ef74007
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/telegraf.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ Description=Telegraf
Documentation=https://github.com/influxdata/telegraf
After=network-online.target
Wants=network-online.target
StartLimitInterval=0
StartLimitBurst=0

[Service]
Type=notify
EnvironmentFile=-/etc/default/telegraf
ConditionFileExists=/etc/bm/mcast.id
ConditionPathExists=/etc/bm/mcast.id
User=telegraf
ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d $TELEGRAF_OPTS
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
TimeoutSec=60s
Restart=on-failure
RestartSec=60
RestartForceExitStatus=SIGPIPE
KillMode=control-group
LimitMEMLOCK=8M:8M
Expand Down

0 comments on commit ef74007

Please sign in to comment.