You would need to run multiple telegraf
processes:
$ telegraf -config config1 > telegraf1.log 2>&1 &
$ telegraf -config config2 > telegraf2.log 2>&1 &
If you need systemd
or init.d
to keep the process alive and start on boot then you would need to copy the service file and change some naming so that you could run:
$ sudo systemctl start telegraf1
$ sudo systemctl start telegraf2
# OR
$ sudo service telegraf1 start
$ sudo service telegraf2 start
Does that help?
Jack