We need to generate a special config file for the Linux machine to capture the CPU and disk metrics. This config file will be in your /etc/telegraf folder.
12 cd /bin/telegraf./telegraf —config /etc/telgraf/telegraf.conf —input–filter cpu:mem:influxdb —output–filter influxdbAfter you run this you will need to open it with your favorite editor, mine is vim:
1 sudo vi /etc/telegraf/telegraf.confOnce the file the is open you can type the letter i to be able to edit the file. Then type /influxdb to find the outputs.influxdb section of the file and edit the same sections we edited for Windows. Type /inputs.outfluxdb to jump down and edit the InFluxdb section. After you have finished editing the file in vim you can type Esc then :wq! and the hit Enter for it save the config file.
Click through to check out her solution.