telegraf - running as a daemon


By default, telegraf comes as a tar/zip file which are not installed into a specific folder. As part the linux way of doing things, packages are placed in /user/local folder.

I needed to configure telegraf as my daemon. So i used the following conf and place it under /etc/systemd/system

[Unit]
Description=telegraf.servicee

[Service]
ExecStart=/usr/local/bin/telegraf --config /usr/local/etc/telegraf/telegraf.conf

[Install]
WantedBy=multi-user.target:

To reload and re-run all the daemon. 

sudo systemctl daemon-reload

To start a single service 

systemctl start telegraf.service

To stop the status 

systemctl status telegraf.service

To get the status 

systemctl status telegraf.service



Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm