Install Telegraf
Install and configure Telegraf
Create a default configuration
Do the configuration on telegraf.conf and search for "mqtt_consumer" and add/modify the following lines:
Note: "raspberry_pii_ip" is the actual ip address of the raspberry PI. You can check its IP by going to the terminal on raspberry pi command line "ifconfig" and find for "inet addr".
Then, look for outputs.influxdb and add/modify the following lines
Note: The output file normally is located in "/home". Open that file and do the modification above. Don't forget to un-command the line that is modified. Otherwise, it won't work.
Finally, run Telegraf
Last updated