Project TTN Daten in InfluxDB für Grafana: Difference between revisions

From JoBaPedia
Jump to navigation Jump to search
Line 24: Line 24:
  zypper in influxdb
  zypper in influxdb


Now check config in /etc/influxdb/influxdb.conf, then enable and start the service
== Configure InfluxDB ==
 
vi /etc/influxdb/influxdb.conf
 
== Start InfluxDB ==


  systemctl daemon-reload
  systemctl daemon-reload
Line 30: Line 34:
  systemctl start influxdb
  systemctl start influxdb
  systemctl status influxdb
  systemctl status influxdb
== Configure InfluxDB ==
/etc/influxdb/influxdb.conf

Revision as of 15:16, 18 December 2019

Flexible Visualization of TTN Data

This page describes installing Grafana and InfluxDB on openSuse 42.2. It also describes how to configure apache 2.4 to recieve data from a Things Network applications HTTP integration and store it in an InfluxDB database. Finally it shows how to create a Grafana dashboard to display the data from the InfluxDB.

Installing InfluxDB

Here is the Download Portal Currently, it tells me to

wget https://dl.influxdata.com/influxdb/releases/influxdb-1.7.9.x86_64.rpm
zypper install influxdb-1.7.9.x86_64.rpm

It warns about missing package shadow-util. On openSuse this is named shadow and is installed -> ignore.

To use systemd for managing the database service, copy the service file

cp -av /usr/lib/influxdb/scripts/influxdb.service /etc/systemd/system/

For later versions of openSuse, Influx Installation Documentation suggests using a repository - should have the same results:

zypper ar -f obs://devel:languages:go/ go
zypper in influxdb

Configure InfluxDB

vi /etc/influxdb/influxdb.conf

Start InfluxDB

systemctl daemon-reload
systemctl enable influxdb
systemctl start influxdb
systemctl status influxdb