Comments on: Monitoring Your Raspberry Pi System using InfluxDB Telegraf https://randomnerdtutorials.com/monitor-raspberry-pi-influxdb-telegraf/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Fri, 24 Jan 2025 13:50:02 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Mark Zimmerman https://randomnerdtutorials.com/monitor-raspberry-pi-influxdb-telegraf/#comment-1002410 Fri, 24 Jan 2025 13:50:02 +0000 https://randomnerdtutorials.com/?p=115588#comment-1002410 Fantastic utility to be able to monitor the RPI ‘health’, really useful and well explained.

It doesn’t appear to survive a reboot (I’m having to re-enter the environment variables to theTelegraf environment and then run the start command.

I’ve tried setting up a influx-cli.service to run but it doesn’t …

Can anybody point me in the right direction to make this start on reboot?

]]>
By: Terry Dean https://randomnerdtutorials.com/monitor-raspberry-pi-influxdb-telegraf/#comment-829322 Sun, 09 Apr 2023 15:44:00 +0000 https://randomnerdtutorials.com/?p=115588#comment-829322 I just got this working today!

]]>
By: Dick https://randomnerdtutorials.com/monitor-raspberry-pi-influxdb-telegraf/#comment-804282 Mon, 19 Dec 2022 19:37:34 +0000 https://randomnerdtutorials.com/?p=115588#comment-804282 I have an issue with the Influxdb-dashboard. After a refresh it shows like this. And then I hoped to be able to post a picture here but unfortunately not.

Well, the header with the chosen bucket and linux_host disappears and all metrics show:

error @3:37-3:38: record is missing label linux_host
error @2:19-2:20: record is missing label timeRangeStart
error @2:43-2:44: record is missing label timeRangeStop
error @1:14-1:15: record is missing label bucket

If I do a ‘hard’ refresh through F5 everything gets back to normal.

]]>
By: Dick https://randomnerdtutorials.com/monitor-raspberry-pi-influxdb-telegraf/#comment-804279 Mon, 19 Dec 2022 19:27:04 +0000 https://randomnerdtutorials.com/?p=115588#comment-804279 In reply to Victor.

Yes, you can. I have 2 pi’s running in 2 different internal networks. And influxdb is running on one of the 2. To be able to reach my influx-environment I’ve a subdomain influxdb.domein where it is pointed to my ‘given’ ip-address. Nginx then handles the connection to the influxdb-environment which is running on http://someip:8086.
To be able to get data from the second pi I use as INFLUX_HOST the influxdb.domein-value.

]]>
By: Sara Santos https://randomnerdtutorials.com/monitor-raspberry-pi-influxdb-telegraf/#comment-794502 Thu, 27 Oct 2022 13:26:22 +0000 https://randomnerdtutorials.com/?p=115588#comment-794502 In reply to Tony.

Thank you!

]]>
By: Tony https://randomnerdtutorials.com/monitor-raspberry-pi-influxdb-telegraf/#comment-794484 Thu, 27 Oct 2022 11:03:28 +0000 https://randomnerdtutorials.com/?p=115588#comment-794484 In reply to Sara Santos.

Already done.

]]>
By: Sara Santos https://randomnerdtutorials.com/monitor-raspberry-pi-influxdb-telegraf/#comment-794468 Thu, 27 Oct 2022 08:55:19 +0000 https://randomnerdtutorials.com/?p=115588#comment-794468 In reply to Tony.

Hi.
Thanks for sharing this.
Can you update the facebook group post with this solution?
Thanks.
Regards,
Sara

]]>
By: Tony https://randomnerdtutorials.com/monitor-raspberry-pi-influxdb-telegraf/#comment-794372 Wed, 26 Oct 2022 19:03:34 +0000 https://randomnerdtutorials.com/?p=115588#comment-794372 In reply to Tony.

Solved it and posted as as response to a question on the RNT Facebook page).

Here’s what I wrote :

Out of the box, Telegraf starts automatically as a daemon with its default telegraf.service systemd script. It looks for a configuration file called telegraf.conf in /etc/telegraf/ to run. The default telegraf.conf file basically does nothing so just overwrite it.

Create a new telegraf.conf by saving your script from the UI :
Load Data -> TELEGRAF tab -> edit -> DOWNLOAD CONFIG

Note that the telegraf.conf file gets the values for $INFLUX_HOST, $INFLUX_TOKEN and $INFLUX_ORG from /etc/defaults/telegraf. So you need to have the correct values there. Fill it in something like this :

INFLUX_HOST=”http://localhost:8086″
INFLUX_TOKEN=” ”
INFLUX_ORG=” ”

or just edit them directly into your config file (Useful if you plan to run multiple instances of telegraf daemons).

HTH

]]>
By: Tony https://randomnerdtutorials.com/monitor-raspberry-pi-influxdb-telegraf/#comment-793567 Sat, 22 Oct 2022 16:33:47 +0000 https://randomnerdtutorials.com/?p=115588#comment-793567 Typing in :
telegraf –config http://192.168.1.xxx:8086/api/v2/telegrafs/xxxxxxxxx
starts a second instance of telegraf that send raspberry pi data to influxdb.

While that works fine, it only sends data while that command is running. If you do a to get back to the command line that kills the second instance of telegraf and data about the pi stops getting sent to influxdb.

Do you have any hints about how to add raspberry pi monitoring to always run without needing a command line open? Possibly some changes to /etc/telegraf/telegraf.conf?

TIA

]]>
By: Sara Santos https://randomnerdtutorials.com/monitor-raspberry-pi-influxdb-telegraf/#comment-790036 Mon, 10 Oct 2022 19:42:45 +0000 https://randomnerdtutorials.com/?p=115588#comment-790036 In reply to B G.

Hi.
Thanks for sharing your experience with us.
I’m not sure if that’s what caused the issue. I need to try with another token name and check what happens.
Regards,
Sara

]]>