Installation von Grafana, InfluxDB & Telegraf auf einem Raspberry Pi

In diesem Beitrag zeige ich euch die Installation von Grafana, InfluxDB & Telegraf auf einem Raspberry Pi,

InfluxDB & Telegraf:

curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -

echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

sudo apt update

sudo apt install influxdb telegraf  

sudo systemctl enable influxdb

sudo systemctl start influxdb 

influx

CREATE USER admin WITH PASSWORD 'password' WITH ALL PRIVILEGES

CREATE DATABASE telegraf

Statt admin könnt ihr auch einen anderen Benutzernamen wählen und ihr solltet bei password ein sicheres Passwort vergeben.

sudo nano /etc/influxdb/influxdb.conf

Hier müssen im Abschnitt [http] die folgende Zeilen überprüft und gegebenenfalls muss die Raute # entfernt werden werden.

enabled = true
bind-address = „:8086“
auth-enabled = true

sudo systemctl restart influxdb

sudo nano /etc/telegraf/telegraf.conf

Die folgenden Einträge in der Datei müssen angepasst werden:

database = "telegraf" # required
username = "admin" 
password = "password"

Die Einträge lassen sich mithilfe von Strg + W suchen. Username und Password müsst ihr mit euren Login Daten ersetzen.

Grafana:

Schaut bitte vorher hier nach ob eine neuere Version verfügbar ist:

wget https://github.com/fg2it/grafana-on-raspberry/releases/download/v4.6.3/grafana_4.6.3_armhf.deb

sudo dpkg -i grafana_4.6.3_armhf.deb

sudo systemctl enable grafana-server 

sudo systemctl start grafana-server

Grafana lauscht nun auf dem Port 3000 und kann konfiguriert werden. Der Default Logiin ist admin / admin

Als erstes solltet ihr euren Benutzernamen und das Passwort ändern. Die geht über http://raspberrypi3000/profile/password


wallpaper-1019588
Deutscher Simuldub zu “I Was Reincarnated as the 7th Prince” gestartet
wallpaper-1019588
Final Fantasy XII – Brettspiel zum PS2-Klassiker angekündigt
wallpaper-1019588
Super Nintendo World – „Donkey Kong Country“-Eröffnung verschoben
wallpaper-1019588
Pokémon Karmesin und Purpur – Neues Tera-Raid-Event am Wochenende