InfluxDB stop polling data

I have an influxdb and grafana on my raspberry pi. I had noticed grafana was not showing any more data. So I look in the database and see that it is not taking anymore data. I need help with what could be the issue.

  1. Disk (SD card) full?

  2. Where is the data coming from - is it still arriving?

  3. Can you add a data point to InfluxDB manually, or does that also fail?

  4. Give us more information such as operating system & version, versions of
    Grafana & InfluxDB, commands you’ve used to find out what’s happening, entries
    from log files from the time the data flow stopped, entries from log files when
    another data point arrives (but fails to be added).

  5. Anything else that might be helpful for us to understand your setup.

Antony.

1 Like
  1. No the SD card still has plenty of free space left.

  2. The data is coming from a python script that is supposed to run every 30 minutes. I followed this article here: Raspberry Pi Internet Speed Monitor - Pi My Life Up
    It has been updated recently so it is a little different but the concept is the same

  3. I figured the script was not running so I tested by running the script manually but the data is not showing up in the database either.

  4. InfluxDB shell version: 1.8.4
    Grafana v7.5.1
    Raspbian GNU/Linux 10 (buster)"
    How would I check the logs? Where are they located?

  1. No the SD card still has plenty of free space left.

Okay, good to rule that out.

  1. The data is coming from a python script that is supposed to run every 30
    minutes. I followed this article here:
    Raspberry Pi Internet Speed Monitor - Pi My Life Up It has been
    updated recently so it is a little different but the concept is the same

What happens if you run the first version of that script - the one which just
outputs data to the console - instead of the second version which writes to
InfluxDB? Does this show that the script is still measuring something and
producing data?

  1. I figured the script was not running so I tested by running the script
    manually but the data is not showing up in the database either.

I actually meant “what happens if you add data to InfluxDB manually, using the
influx command-line tool?”

https://docs.influxdata.com/influxdb/v1.8/tools/influx-cli/

Simply write the same sort of data as the Python script produces, to the
InfluxDB and see whether it gets stored. You can always delete data afterwards
if you manage to get something silly into the database.

  1. InfluxDB shell version: 1.8.4
    Grafana v7.5.1
    Raspbian GNU/Linux 10 (buster)
    How would I check the logs? Where are they located?

/var/log/influxdb/influxd.log - it’s plain text files, so you can use tail, less,
grep etc on it.

Antony.

1 Like

The first script I do not have anymore and it was not connected to influx or grafana. It would only save it to a file.

I have tried to manually enter one, but I am not having any luck. I tried to follow the guide, but I was having trouble. Also I could not find any logs there.