NEWS
BackItUp - InfluxDB2 - Grafana
-
Die Repos zu Grafana wie auch Influx finden sich Copy&Paste fertig hier:
https://forum.iobroker.net/topic/59231/phantastische-repositories-und-wo-sie-zu-finden-sind
-
@marc-berg sagte in BackItUp - InfluxDB2 - Grafana:
@dp20eic sagte in BackItUp - InfluxDB2 - Grafana:
Wenn Du es richtig installieren möchtest, musst Du dir leider die alte Doku aus influxDB V.2.0 nehmen.
https://docs.influxdata.com/influxdb/v2.0/install/?t=LinuxUnter diesem Link ist aber auch nicht die Installation per Paketmanager beschrieben, oder?
Moin,
yup, mein Fehler, dachte, dass das noch die alte Beschreibung ist.
VG
Bernd -
@thomas-braun
also mit diesenLinks funktioniert auch nicht alles:wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key /usr/share/keyrings/grafana.key: Keine Berechtigung
dann bei Influxdb2 werden ja nur die links zu den Repositories hinzugefügt.
Wie gehts dann weiter mit der Install?? -
@friedhofsblond sagte in BackItUp - InfluxDB2 - Grafana:
@thomas-braun
also mit diesenLinks funktioniert auch nicht alles:wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key /usr/share/keyrings/grafana.key: Keine Berechtigung
dann bei Influxdb2 werden ja nur die links zu den Repositories hinzugefügt.
Wie gehts dann weiter mit der Install??Moin,
Da ist etwas beim Kopieren/einfügen kaputt gegangen
1) sudo apt-get install -y apt-transport-https 2) sudo apt-get install -y software-properties-common wget 3) wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key 4) echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
Das sind jeweils einzelne Kommandos, also erst 1, dann 2 usw.
VG
Bernd -
@friedhofsblond sagte in BackItUp - InfluxDB2 - Grafana:
Wie gehts dann weiter mit der Install??
Dann wie üblich bei deinem Betriebssystem.
sudo apt update sudo apt install GEWÜNSCHTES_PAKET
Vermutlich also
influxdb2
influxdb2-client
undgrafana
-
@dp20eic
Ich hab gerade gesehen, da fehlt ein sudo in Zeile 3.
Muss alsosudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
lauten.
-
hier ist es via apt beschrieben
https://docs.influxdata.com/influxdb/v2.2/install/?t=Linux -
@crunchip sagte in BackItUp - InfluxDB2 - Grafana:
hier ist es via apt beschrieben
https://docs.influxdata.com/influxdb/v2.2/install/?t=LinuxMoin,
ah, genau das war der Link, den ich oben eigentlich meinte, also V2.2 nicht 2.0
VG
Bernd -
@dp20eic
Jo, so langsam wirds - werde dann wohl morgen die nächsten blöden Fragen stellen.
Danke für die Geduld - -
@friedhofsblond
moin, so nach der Install des IOB habe ich erstmal ein image gezogen und Influxdb2 und Grafana installiert.
Ohne erstmal daten in die DB laufen zu lassen und an Grafana was zu basteln, will ich erstmal ein Backup anlegen können. Dann habe ich eine saubere Basis und kann weiter machen.Influxdb2-CLI ist wohl jetzt im Influxdb2 paket enthalten und muß/kann nicht mehr zusätzlich installiert werden, so wie ich das deute:
superuser@debian:~$ sudo apt install influxdb2-client Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig Die folgenden NEUEN Pakete werden installiert: influxdb2-client 0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen noch 0 B von 11,3 MB an Archiven heruntergeladen werden. Nach dieser Operation werden 25,0 MB Plattenplatz zusätzlich benutzt. (Lese Datenbank ... 51827 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../influxdb2-client_2.7.1-1_amd64.deb ... Entpacken von influxdb2-client (2.7.1-1) ... dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/influxdb2-client_2.7.1-1_amd64.deb (--unpack): Versuch, »/usr/bin/influx« zu überschreiben, welches auch in Paket influxdb2-cli 2.7.3-1 ist dpkg-deb: Fehler: »einfügen«-Unterprozess wurde durch Signal (Datenübergabe unterbrochen (broken pipe)) getötet Fehler traten auf beim Bearbeiten von: /var/cache/apt/archives/influxdb2-client_2.7.1-1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Beide Installationen laufen nach Systemstart und sind über die Web-Gui erreichbar.
Eh ich bei Erstellung User/Datenbank/Visu fehler mache.
Das mit "CREATE USER "admin" WITH PASSWORD 'iobroker' WITH ALL PRIVILEGES" usw.
Muß ich ja bei V2 nicht mehr machen. (oder?)So Erstanmeldung bei Influx (was schreibe ich bei Bucket rein - das wird der Name der Datenbank - oder ?
Bei Grafana - einen sa anlegen (mit welchen privilegien)
Grüße
-
@friedhofsblond sagte in BackItUp - InfluxDB2 - Grafana:
Influxdb2-CLI ist wohl jetzt im Influxdb2 paket enthalten und muß/kann nicht mehr zusätzlich installiert werden, so wie ich das deute:
Fast.
influxdb2-client
undinfluxdb2-cli
beißen sich da. Ich hab aber noch nicht herausgefunden, wozu die beiden Versionen dienen. Vermutlich istinfluxdb2-cli
das Paket, in dem die Entwicklung stattfindet undinfluxdb2-client
ist die Version die zum Hauptrelease voninfluxdb2
gehört. Würde ich jedenfalls so aus den Versionsnummern interpretieren. -
@thomas-braun
also den cli installieren ? -
@friedhofsblond sagte in BackItUp - InfluxDB2 - Grafana:
also den cli installieren ?
Den hast du schon installiert.
Ich würde den influxdb2-client stattdessen nehmen.sudo apt update sudo apt remove influxdb2-cli sudo apt install influxdb2-client apt policy influxdb2*
-
superuser@debian:~$ sudo apt update [sudo] Passwort für superuser: OK:1 http://deb.debian.org/debian bullseye InRelease Holen:2 http://deb.debian.org/debian bullseye-updates InRelease [44,1 kB] OK:3 http://security.debian.org/debian-security bullseye-security InRelease OK:4 https://repos.influxdata.com/debian stable InRelease OK:5 https://deb.nodesource.com/node_18.x bullseye InRelease OK:6 https://apt.grafana.com stable InRelease Es wurden 44,1 kB in 1 s geholt (54,0 kB/s). Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig Alle Pakete sind aktuell. superuser@debian:~$ sudo apt remove influxdb2-cli Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig Die folgenden Pakete werden ENTFERNT: influxdb2-cli 0 aktualisiert, 0 neu installiert, 1 zu entfernen und 0 nicht aktualisiert. Nach dieser Operation werden 25,2 MB Plattenplatz freigegeben. Möchten Sie fortfahren? [J/n] j (Lese Datenbank ... 60118 Dateien und Verzeichnisse sind derzeit installiert.) Entfernen von influxdb2-cli (2.7.3-1) ... superuser@debian:~$ sudo apt install influxdb2-client Paketlisten werden gelesen… Fertig Abhängigkeitsbaum wird aufgebaut… Fertig Statusinformationen werden eingelesen… Fertig Die folgenden NEUEN Pakete werden installiert: influxdb2-client 0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert. Es müssen noch 0 B von 11,3 MB an Archiven heruntergeladen werden. Nach dieser Operation werden 25,0 MB Plattenplatz zusätzlich benutzt. (Lese Datenbank ... 60115 Dateien und Verzeichnisse sind derzeit installiert.) Vorbereitung zum Entpacken von .../influxdb2-client_2.7.1-1_amd64.deb ... Entpacken von influxdb2-client (2.7.1-1) ... influxdb2-client (2.7.1-1) wird eingerichtet ... superuser@debian:~$ apt policy influxdb2* influxdb2-cli: Installiert: (keine) Installationskandidat: 2.7.3-1 Versionstabelle: 2.7.3-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.7.1-2 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.6.1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.6.0 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.5.0 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.4.0 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.3.0 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages influxdb2-client: Installiert: 2.7.1-1 Installationskandidat: 2.7.1-1 Versionstabelle: *** 2.7.1-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 100 /var/lib/dpkg/status influxdb2: Installiert: 2.7.1-1 Installationskandidat: 2.7.1-1 Versionstabelle: *** 2.7.1-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 100 /var/lib/dpkg/status 2.7.0-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.6.1-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.6.0-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.5.1-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.4.0-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.3.0-1 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages 2.2.0 500 500 https://repos.influxdata.com/debian stable/main amd64 Packages superuser@debian:~$
OK hat geklappt
Obwohl es manchmal von cli und manchmal von client die Rede ist.
Hier geht es um cli:
und der Link geht auf CLIIch denke fast der Client muß raus der CLI rein ?
-
@friedhofsblond sagte in BackItUp - InfluxDB2 - Grafana:
Ich denke fast der Client muß raus der CLI rein ?
Nein, beide Pakete stellen die benötigten Programme bereit. Das Paket
influxdb2-client
gibt es glaube ich auch noch nicht so lange.Von den Versionsnummern her bilden aber influxdb2 und influxdb2-client das bessere Pärchen, würde ich mal behaupten.
-
@thomas-braun
OK sieht erstmal gut aus. Adapter influx und backup für influx - läuft.
Nach dem Mittag grafana.Started iobroker ... [DEBUG] [iobroker] - host.debian 2119 states saved [DEBUG] [iobroker] - host.debian 2900 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2023_06_07-11_49_07_backupiobroker.tar.gz [DEBUG] [iobroker] - done [DEBUG] [influxDB] - InfluxDB-Backup started ... [DEBUG] [influxDB] - Start InfluxDB Backup ... [DEBUG] [influxDB] - InfluxDB Backup tmp directory created [DEBUG] [influxDB] - Backup created: /opt/iobroker/backups/influxDB_2023_06_07-11_49_10_backupiobroker.tar.gz [DEBUG] [influxDB] - Try deleting the InfluxDB tmp directory: "/opt/iobroker/backups/influxDB_2023_06_07-11_49_10_backupiobroker" [DEBUG] [influxDB] - InfluxDB tmp directory "/opt/iobroker/backups/influxDB_2023_06_07-11_49_10_backupiobroker" successfully deleted [DEBUG] [influxDB] - InfluxDB-Backup for is finish [DEBUG] [influxDB] - done [DEBUG] [clean] - No older backup files are deleted, because this backup was started manually [DEBUG] [clean] - done [DEBUG] [historyHTML] - new history html values created [DEBUG] [historyHTML] - done [DEBUG] [historyJSON] - new history json values created [DEBUG] [historyJSON] - done [EXIT] 0
-
@friedhofsblond
So moin,
bin noch nicht viel weiter
Die Daten landen in der DB und werden auch gesichert:
Habe zwei Probleme ich kann wohl kein Backup von Grafana machen, weil die Verbindung von Influxdb zu Grafana nicht klappt ... denke ich:
-
Was soll ich hier einstellen?:
Ich habe alles mögliche versucht mit Passwort Token usw ... -
Und hier die Daten für das Backup?.
Die Datenbank für iobroker heißt iobrokerdb
-
-
@friedhofsblond geb mal die IP Adresse anstatt localhost ein
-
@crunchip
kommt das und wird keine backupdatei angelegtStarted iobroker ... [DEBUG] [iobroker] - host.debian 2212 states saved [DEBUG] [iobroker] - host.debian 3010 objects saved [DEBUG] [iobroker] - Backup created: /opt/iobroker/backups/iobroker_2023_06_07-15_35_01_backupiobroker.tar.gz [DEBUG] [iobroker] - done [DEBUG] [grafana] - Start Grafana Backup ... [DEBUG] [grafana] - Created grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp" [DEBUG] [grafana] - Created dashboard directory [DEBUG] [grafana] - Created dashboards_manually_restore directory [DEBUG] [grafana] - Created datasource directory [DEBUG] [grafana] - start Grafana request ... [DEBUG] [grafana] - Grafana is available ... Status: 200 [DEBUG] [grafana] - start Grafana backup compress ... [DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp" [DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted [ERROR] [grafana] - cannot found Grafana Backup files [DEBUG] [grafana] - done [DEBUG] [clean] - No older backup files are deleted, because this backup was started manually [DEBUG] [clean] - done [DEBUG] [historyHTML] - new history html values created [DEBUG] [historyHTML] - done [DEBUG] [historyJSON] - new history json values created [DEBUG] [historyJSON] - done [EXIT] 0
-
@friedhofsblond sagte in BackItUp - InfluxDB2 - Grafana:
kommt das
wo?
keine Timestamps bei den Meldungen?