Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
cd app/val_view
./val_view

Database Forwarding


The other UI strategy is to forward all of the telemetry data to an InfluxDB database and then display it using grafana.
Database Forwarding

Image Added


InfluxDB and grafana both need to be installed. On If not already installed, on Linux distros with apt/dpkg , run the following to install:

Code Block
sudo apt install influxdb
sudo apt install influxdb-client

sudo apt-get install -y adduser libfontconfig1
wget https://dl.grafana.com/oss/release/grafana_7.3.7_amd64.deb
sudo dpkg -i grafana_7.3.7_amd64.deb


If installing for the first time, InfluxDB will be started as a service by default, run the following to disable it:

Code Block
sudo service influxdb stop


Start InfluxDB with a custom config file by executing the following:

Code Block
cd app/InfluxDB/run_influx
./run_influx.sh


Next we need to start grafana:

Code Block
sudo service grafana-server start


Login to the grafana server by going to https://localhost:3000. The default username is 'admin' with password 'admin'. Click to add InfluxDB as a database, leave all the defaults but change the database name to 'gsw'. Next you can create a dashboard to display the data from InfluxDB, you can also import dashboards found at app/InfluxDB/grafana/dashboards.


Lastly, we need to actually forward the telemetry data to InfluxDB. There is an application that does this, run it by executing the following:

Code Block
cd app/InfluxDB/fwd_influx
./fwd_influx


You should now be able to see any telemetry data coming in through your grafana dashboard.