Fa-grafana - Dockerized Grafana Dashboards

@Wilmer fa-grafana actually uses a Prometheus Docker container for time series storage. I haven’t had a chance to explore other data sources Grafana supports but I would like to at some point. Docker should make that easy to do.

Yikes, I see now, my apologies for having read this so poorly. :frowning: Guess I just didn’t realise RasPi’s had the power to run this all. Fantastic to be able to dump medieval rrdtool.

[goes back to lurking mode as I should have]

1 Like

Please could someone tell me how I resize the Grafana display so that I can see all the graphs in one view as per the examples above, instead of scrolling up and down.

Many thanks

Zoom out browser by keeping Ctrl key pressed and repeatedly pressing - key till you see all graphs.

To Zoom in, keep Ctrl key pressed and repeatedly press + key.

I could see all graphes when I zoomed out to 50%

20200424_201558

Many thanks

Another problem. I have had to reboot my Pi. How do I get Grafana working again? I just get an error message ‘This site cannot be reached’

Thank you

To try and restart I have used the following ‘sudo docker-compose up -d’ but get the following error messages:

pi@raspberrypi:~/fa-grafana $ sudo docker-compose up -d
Starting dump1090exporter …
Starting dump1090exporter … error

ERROR: for dump1090exporter Cannot start service dump1090exporter: driver failed programming external c onnectivity on endpoint dump1090exporter (bad79f7efc08693bd1fca1b9c638233c1a77e1dc60997f81b8a0e3c21cc785 28): Bind for 0.0.0.0:9105 failed: port is already allocated

ERROR: for dump1090exporter Cannot start service dump1090exporter: driver failed programming external c onnectivity on endpoint dump1090exporter (bad79f7efc08693bd1fca1b9c638233c1a77e1dc60997f81b8a0e3c21cc785 28): Bind for 0.0.0.0:9105 failed: port is already allocated
ERROR: Encountered errors while bringing up the project.

@NigelRichardson If the containers are running and you reboot, it should start up again so there is no need to restart them.

To list all the running containers, use

sudo docker-compose ps

To restart the containers, use

sudo docker-compose restart

Let me know if you need help.

Hi

I’ve tried both of those commands but get the following error messages:

pi@raspberrypi:~ $ sudo docker-compose ps
ERROR:
Can’t find a suitable configuration file in this directory or any
parent. Are you in the right directory?

    Supported filenames: docker-compose.yml, docker-compose.yaml

pi@raspberrypi:~ $ cd fa-grafana
pi@raspberrypi:~/fa-grafana $ sudo docker-compose ps
Name Command State Ports

dump1090exporter dump1090exporter --url=htt … Exit 128
pi@raspberrypi:~/fa-grafana $ sudo docker-compose restart
Restarting dump1090exporter … error

ERROR: for dump1090exporter Cannot restart container 718a283b6e6aeb2c621cdbc320 9b0b0e3ff0ff45860300987c169b5ff3cccfec: driver failed programming external conne ctivity on endpoint dump1090exporter (5773c1c49b94f8cd4a8accee3902d518f86214c6db 055daebd8755ada5729d4f): Bind for 0.0.0.0:9105 failed: port is already allocated

@NigelRichardson Let’s try stopping and removing any containers:

sudo docker stop $(docker ps -a -q)

sudo docker rm $(docker ps -a -q)

Then cd into the fa-grafana directory and start them again:

sudo docker-compose up -d

If that doesn’t work, check if you have something else running on port 9105.

Please excuse my ignorance as I’ve never dabbled with docker. Followed the instructions, added the proper local ip to the .env file and I’m seeing this: (RPI4, 3.7.2 addon):

ss (2020-04-25 at 12.50.55)

ss (2020-04-25 at 12.49.43)

ss (2020-04-25 at 12.53.16)

Thanks for your suggestions but still no joy -see attached.

I don’t have anything else running on the Rpi other than Dump1090-fa, pfclient and feed to FR24. I actually had it working fine last night and it was only after the reboot that the problems started. Is it worth starting from the beginning again?

Many thanks
Grafana problem

@Nitr0 Can you check the container logs with sudo docker-compose logs -f ?

No Bueno:

dump1090exporter | INFO:aiohttp.access:172.18.0.3 [25/Apr/2020:21:02:42 +0000] “GET /metrics HTTP/1.1” 200 5612 “-” “Prometheus/2.17.1”
dump1090exporter | DEBUG:dump1090exporter.exporter:fetching http://192.168.2.127:8080/data/aircraft.json
dump1090exporter | ERROR:dump1090exporter.exporter:Error fetching dump1090 aircraft data: Fetch failed 403: http://192.168.2.127:8080/data/aircraft.json

8080 is a no-go for package add-on (non pre-canned sd image). Map is {IP}/dump1090.php

@Nitr0 Ah okay. Is /data/aircraft.json accessible on your package install?

dump1090exporter will look for this json to collect metrics so you’ll need to edit the docker-compose.yml file and change the following line:

--url=http://${HOST_IP:?IP_ADDRESS_UNSET_ERROR}:8080

to point to the url serving /data/aircraft.json

Maybe try --url=http://${HOST_IP:?IP_ADDRESS_UNSET_ERROR}/dump1090-fa

Then restart the docker containers:

sudo docker-compose stop
sudo docker-compose up -d

1 Like

@eric1tran That did the trick, thanks kindly :+1:

The readout is a little wonky (Chrome 1920x1200), but it’s pulling data:

Disregard signal level as this is my Airspy rig.

Is there a relatively easy way to upgrade the FA-Grafana software or be able to determine if any updates have been made? I see the Docker repository is added after installation, but not sure if that covers all software relevant to FA-Grafana.

@timothydykstra82 A git pull on the repository and restart of the docker containers is the current method. Once we get this next FlightFeeder release out, I will revisit fa-grafana and look into improving the process and implementing some new features.

1 Like
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.