Why does Graphana only show 4 hours of data.

Discussion in 'Feeding' started by Bob Randolph, Jan 14, 2019.

  1. Bob Randolph

    Bob Randolph Member

    I have tried to get graphana to show me how my feed is going day after day but it will only show me 4 hours of data.
    upload_2019-1-14_11-52-39.png
     
  2. MDA

    MDA Administrator Staff Member

    James described it:
    "It saves 4 hours to ram tmp filesystem, If you hosted your own prometheus on the same network then configured it scrape the pi /metrics. Then you could have as much persistence as you wanted. https://prometheus.io/"
     
  3. Bob Randolph

    Bob Randolph Member

    So prometeus.io is a server?
    This sounds difficult but its probably worthwhile.
    Has someone made a. Tutorial how to do this?
    Or perhaps when I finally figure it out i could post one.
     
  4. MDA

    MDA Administrator Staff Member

  5. Bob Randolph

    Bob Randolph Member

    I need to install this on my raspberry pi?
     
  6. MDA

    MDA Administrator Staff Member

    Exactly
     
  7. Bob Randolph

    Bob Randolph Member

    is the install a batch file that does the tuff stuff?
     
  8. Bob Randolph

    Bob Randolph Member

    ok I will cry for help when I get into this...LOL
     
  9. MDA

    MDA Administrator Staff Member

    Follow the steps described on Github. Install only portal.
    I'll hear your UUUUGH.
     
  10. James

    James Guest

    You can change it. It saves 4 hours because it writes the database in ram. Pi has limited ram. I think you can push it to 24 hours without crashing the Pi.
     
  11. James

    James Guest

    Change the storage.local.retention to whatever you want. Just don't use all the RAM. ADSBx image is intended to run remotely for years without trashing the SD card with write cycles.

    sudo nano /home/pi/adsbexchange-prom.sh

    change time ..

    CRTL+O

    then

    sudo shutdown -r now

    Screenshot_2019-01-14_18-16-22.png
     
  12. James

    James Guest

    I changed my 512 MB Pi Zero W to 36 hours .. let's see if it works in a busy airspace.

    You could also decrease the rate at which it saves data.

    You could put a promethues and grafana on a PC on the local network and point them to the Pi, or point the Pi to them ..... all kinds of things are possible.
     
  13. James

    James Guest

    I was able to do 36 hours on a Pi Zero ... just watch ram usage and keep increasing the time ...

    Screenshot_2019-01-18_01-26-39.png