Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter influxdb 2.0

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Test Adapter influxdb 2.0

    This topic has been deleted. Only users with topic management privileges can see it.
    • apollon77
      apollon77 @Feuersturm last edited by

      @feuersturm Achja ... das hatten wir vergesen zu erwähnen ;-)) Passwort bzw Token wird jetzt verschlüsselt gespeichert und muss dahger einmalig neu eingegeben werden

      Feuersturm 1 Reply Last reply Reply Quote 0
      • Feuersturm
        Feuersturm @apollon77 last edited by Feuersturm

        @apollon77 Ah 🙂

        Irgendwas scheint noch nicht ganz sauber zu funktionieren. Ich lasse den Datenpunkt proxmox.0.node_pve.cpu in die Datenbank speichern. In Influx wird hier folgendes angezeigt:
        ab0683eb-8fec-4115-88b3-94bbd1c8e530-grafik.png

        In ioBroker wird mir der Wert vom Datenpunkt korrekt angezeigt:
        54927c9a-e965-43c4-a365-66b5d98ad142-grafik.png

        Das sind die Einstellungen vom Datenpunkt
        488c08af-60d2-4d3b-ac92-6320aa31a48c-grafik.png

        Influx Version

        proxmox@DatenbankenTest:~$ influx version
        Influx CLI 2.0.7 (git: 2a45f0c037) build_date: 2021-06-04T19:17:40Z
        

        Welche weiteren Infos helfen euch weiter?

        Edit:

        proxmox@DatenbankenTest:~$ influx query 'from(bucket:"iobroker") |> range(start:-10m) |> filter(fn: (r) => r._measurement == "proxmox.0.node_pve.cpu")'
        Result: _result
        Table: keys: [_start, _stop, _field, _measurement]
                           _start:time                      _stop:time           _field:string     _measurement:string                      _time:time   _value:bool
        ------------------------------  ------------------------------  ----------------------  ----------------------  ------------------------------  ------------
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                     ack  proxmox.0.node_pve.cpu  2021-08-09T23:42:01.093000000Z          true
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                     ack  proxmox.0.node_pve.cpu  2021-08-09T23:43:01.075000000Z          true
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                     ack  proxmox.0.node_pve.cpu  2021-08-09T23:44:01.155000000Z          true
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                     ack  proxmox.0.node_pve.cpu  2021-08-09T23:45:01.086000000Z          true
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                     ack  proxmox.0.node_pve.cpu  2021-08-09T23:46:01.129000000Z          true
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                     ack  proxmox.0.node_pve.cpu  2021-08-09T23:47:01.082000000Z          true
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                     ack  proxmox.0.node_pve.cpu  2021-08-09T23:48:01.104000000Z          true
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                     ack  proxmox.0.node_pve.cpu  2021-08-09T23:49:01.089000000Z          true
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                     ack  proxmox.0.node_pve.cpu  2021-08-09T23:50:01.119000000Z          true
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                     ack  proxmox.0.node_pve.cpu  2021-08-09T23:51:01.088000000Z          true
        Table: keys: [_start, _stop, _field, _measurement]
                           _start:time                      _stop:time           _field:string     _measurement:string                      _time:time             _value:string
        ------------------------------  ------------------------------  ----------------------  ----------------------  ------------------------------  ------------------------
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                    from  proxmox.0.node_pve.cpu  2021-08-09T23:42:01.093000000Z  system.adapter.proxmox.0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                    from  proxmox.0.node_pve.cpu  2021-08-09T23:43:01.075000000Z  system.adapter.proxmox.0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                    from  proxmox.0.node_pve.cpu  2021-08-09T23:44:01.155000000Z  system.adapter.proxmox.0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                    from  proxmox.0.node_pve.cpu  2021-08-09T23:45:01.086000000Z  system.adapter.proxmox.0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                    from  proxmox.0.node_pve.cpu  2021-08-09T23:46:01.129000000Z  system.adapter.proxmox.0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                    from  proxmox.0.node_pve.cpu  2021-08-09T23:47:01.082000000Z  system.adapter.proxmox.0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                    from  proxmox.0.node_pve.cpu  2021-08-09T23:48:01.104000000Z  system.adapter.proxmox.0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                    from  proxmox.0.node_pve.cpu  2021-08-09T23:49:01.089000000Z  system.adapter.proxmox.0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                    from  proxmox.0.node_pve.cpu  2021-08-09T23:50:01.119000000Z  system.adapter.proxmox.0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                    from  proxmox.0.node_pve.cpu  2021-08-09T23:51:01.088000000Z  system.adapter.proxmox.0
        Table: keys: [_start, _stop, _field, _measurement]
                           _start:time                      _stop:time           _field:string     _measurement:string                      _time:time                  _value:float
        ------------------------------  ------------------------------  ----------------------  ----------------------  ------------------------------  ----------------------------
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                       q  proxmox.0.node_pve.cpu  2021-08-09T23:42:01.093000000Z                             0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                       q  proxmox.0.node_pve.cpu  2021-08-09T23:43:01.075000000Z                             0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                       q  proxmox.0.node_pve.cpu  2021-08-09T23:44:01.155000000Z                             0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                       q  proxmox.0.node_pve.cpu  2021-08-09T23:45:01.086000000Z                             0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                       q  proxmox.0.node_pve.cpu  2021-08-09T23:46:01.129000000Z                             0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                       q  proxmox.0.node_pve.cpu  2021-08-09T23:47:01.082000000Z                             0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                       q  proxmox.0.node_pve.cpu  2021-08-09T23:48:01.104000000Z                             0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                       q  proxmox.0.node_pve.cpu  2021-08-09T23:49:01.089000000Z                             0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                       q  proxmox.0.node_pve.cpu  2021-08-09T23:50:01.119000000Z                             0
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                       q  proxmox.0.node_pve.cpu  2021-08-09T23:51:01.088000000Z                             0
        Table: keys: [_start, _stop, _field, _measurement]
                           _start:time                      _stop:time           _field:string     _measurement:string                      _time:time                  _value:float
        ------------------------------  ------------------------------  ----------------------  ----------------------  ------------------------------  ----------------------------
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                   value  proxmox.0.node_pve.cpu  2021-08-09T23:42:01.093000000Z                         18.98
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                   value  proxmox.0.node_pve.cpu  2021-08-09T23:43:01.075000000Z                         18.47
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                   value  proxmox.0.node_pve.cpu  2021-08-09T23:44:01.155000000Z                         18.68
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                   value  proxmox.0.node_pve.cpu  2021-08-09T23:45:01.086000000Z                         16.12
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                   value  proxmox.0.node_pve.cpu  2021-08-09T23:46:01.129000000Z                         17.03
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                   value  proxmox.0.node_pve.cpu  2021-08-09T23:47:01.082000000Z                         16.98
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                   value  proxmox.0.node_pve.cpu  2021-08-09T23:48:01.104000000Z                         16.77
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                   value  proxmox.0.node_pve.cpu  2021-08-09T23:49:01.089000000Z                         18.57
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                   value  proxmox.0.node_pve.cpu  2021-08-09T23:50:01.119000000Z                          20.2
        2021-08-09T23:41:06.058022993Z  2021-08-09T23:51:06.058022993Z                   value  proxmox.0.node_pve.cpu  2021-08-09T23:51:01.088000000Z                         21.49
        
        
        Excodibur apollon77 2 Replies Last reply Reply Quote 0
        • Excodibur
          Excodibur Developer @Feuersturm last edited by Excodibur

          @feuersturm Ich kenne dein Query-Tool nicht, aber kannst du dort die mean-Funktion auf das value-Feld beschränken? ack ist Boolean und from String, darauf wird die mean-Funktion sehr wahrscheinlich solche Fehler werfen. Im Adapter-Code wird die Funktion immer nur auf das value-Feld ausgeführt und dort z.B. bei boolean Werten ausgelassen, um solche Fehler nicht zu produzieren.

          Die letzte Query kannst du übersichtlicher gestalten, indem du noch |> pivot(rowKey:["_time"], columnKey: ["_field"], valueColumn: "_value") anhängst.

          Feuersturm 1 Reply Last reply Reply Quote 0
          • apollon77
            apollon77 @Feuersturm last edited by apollon77

            @feuersturm WIe Excodibur sagt, Influxdb 1 hatscheinbar ein "Mean auf boolean" mit nem "percentile 50" oder soweas intern gleichgesetzt. FluxQL macht das scheinbar nicht. Und ja bei Boolean gibt es kein "vielleicht" was im Zweifel das Ergebnis von mean ist wenn die Daten nicht 100% treu oder false sind 🙂

            Kleiner Randtip (auch wenn offtopic) : mean/avg ist alles blödsinn :-))) https://www.elastic.co/de/blog/averages-can-dangerous-use-percentile

            K S 2 Replies Last reply Reply Quote 1
            • K
              Kueppert @apollon77 last edited by

              @apollon77 direkt mal in der Influx1DB auf percentile(50) umgestellt für nen Bool-Wert. Mal sehen, ob ich das Englisch da korrekt verstanden hab ^^

              S 1 Reply Last reply Reply Quote 0
              • S
                stenmic @Kueppert last edited by

                kurze Frage, wird jetzt die eingestellte Vorhaltezeit der einzelnen Datenpunkte beachtet?
                Ich kann das aus den Beiträgen nicht wirklich rauslesen.

                apollon77 1 Reply Last reply Reply Quote 0
                • apollon77
                  apollon77 @stenmic last edited by

                  @stenmic hat noch nie geklappt und die Einstellung ist daher auch in der 2.0 ganz weg. Geht nur noch pro DB - aber da geht es jetzt auch wirklich.

                  S 2 Replies Last reply Reply Quote 0
                  • S
                    stenmic @apollon77 last edited by

                    @apollon77 ok… kann ich mehrere Datenbanken anlegen?
                    Geht das über Instanzen?

                    apollon77 1 Reply Last reply Reply Quote 0
                    • S
                      stenmic @apollon77 last edited by

                      @apollon77 weißt du vielleicht wie das der sql-Adapter mit ner MariaDB regelt? Funktionieren da die Vorgaben oder ist das auch nur eine “Attrappe“

                      apollon77 1 Reply Last reply Reply Quote 0
                      • Feuersturm
                        Feuersturm @Excodibur last edited by Feuersturm

                        @excodibur
                        Die influxdb UI wurde bei mir standardmäßig mit installiert und ist über den port 8086 erreichbar.
                        Wenn ich "value" auswähle, dann werden mir die Werte wieder dargestellt.
                        eea3514c-ecc1-47ed-b94b-33f51d3820d1-grafik.png

                        Das ist die Ausgabe mit der optimierten Query:

                        proxmox@DatenbankenTest:~$ influx query 'from(bucket:"iobroker") |> range(start:-15m) |> filter(fn: (r) => r._measurement == "proxmox.0.node_pve.cpu")|> pivot(rowKey:["_time"], columnKey: ["_field"], valueColumn: "_value")'
                        Result: _result
                        Table: keys: [_start, _stop, _measurement]
                        _start:time                      _stop:time     _measurement:string                      _time:time      ack:bool               from:string                       q:float                   value:float
                        ------------------------------  ------------------------------  ----------------------  ------------------------------  ------------  ------------------------  ----------------------------  ----------------------------
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:31:20.467000000Z          true  system.adapter.proxmox.0                             0                         20.61
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:32:20.476000000Z          true  system.adapter.proxmox.0                             0                         26.39
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:33:20.478000000Z          true  system.adapter.proxmox.0                             0                         21.75
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:34:20.487000000Z          true  system.adapter.proxmox.0                             0                         22.67
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:35:20.475000000Z          true  system.adapter.proxmox.0                             0                         19.91
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:36:20.472000000Z          true  system.adapter.proxmox.0                             0                         20.58
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:37:20.490000000Z          true  system.adapter.proxmox.0                             0                         18.83
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:38:20.483000000Z          true  system.adapter.proxmox.0                             0                         22.74
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:39:20.483000000Z          true  system.adapter.proxmox.0                             0                         18.35
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:40:20.479000000Z          true  system.adapter.proxmox.0                             0                         18.97
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:41:20.481000000Z          true  system.adapter.proxmox.0                             0                         18.96
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:42:20.481000000Z          true  system.adapter.proxmox.0                             0                         25.59
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:43:20.480000000Z          true  system.adapter.proxmox.0                             0                         17.72
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:44:20.483000000Z          true  system.adapter.proxmox.0                             0                         15.64
                        2021-08-10T18:31:15.028415368Z  2021-08-10T18:46:15.028415368Z  proxmox.0.node_pve.cpu  2021-08-10T18:45:20.476000000Z          true  system.adapter.proxmox.0                             0                         19.26
                        
                        

                        Sieht somit doch gut aus 🙂

                        apollon77 1 Reply Last reply Reply Quote 1
                        • apollon77
                          apollon77 @stenmic last edited by

                          @stenmic Exakt. Jede instanz eine DB, damit kannst Du auch genau konfigurieren welche Datenpunkte wo hin laufen sollen

                          S 1 Reply Last reply Reply Quote 0
                          • apollon77
                            apollon77 @stenmic last edited by

                            @stenmic Was meinst Du? MariaDB ist MySQL und so einfach MySQL einricjten, IP und Port, fertig. Oder was war die Frage (auch wenn das hier nicht reingehört)

                            1 Reply Last reply Reply Quote 0
                            • apollon77
                              apollon77 @Feuersturm last edited by

                              @feuersturm Es wurde nich gemedlet das der Adapter craht bei Timeouts bzw Connection Lost ... das schaut sich @Excodibur gerade noch an ...

                              1 Reply Last reply Reply Quote 0
                              • S
                                stenmic @apollon77 last edited by

                                @apollon77 sagte in Test Adapter influxdb 2.0:

                                Exakt. Jede instanz eine DB, damit kannst Du auch genau konfigurieren welche Datenpunkte wo hin laufen sollen

                                Geht das nur mit Influx 2.0 oder dann auch mit der 1.8er Version.

                                apollon77 1 Reply Last reply Reply Quote 0
                                • apollon77
                                  apollon77 @stenmic last edited by

                                  @stenmic dann auch mit 1.8

                                  S 1 Reply Last reply Reply Quote 0
                                  • S
                                    stenmic @apollon77 last edited by

                                    @apollon77 super… ich setzte gerade meinen iobroker neu auf.
                                    Soll ich schon den neuen Adapter nehmen bzw. könnt ihr schon abschätzen wann er stable wird?
                                    Bei influxdb bin ich unentschlossen 1.8 oder 2.0

                                    apollon77 1 Reply Last reply Reply Quote 0
                                    • apollon77
                                      apollon77 @stenmic last edited by

                                      @stenmic sagte in Test Adapter influxdb 2.0:

                                      Soll ich schon den neuen Adapter nehmen bzw. könnt ihr schon abschätzen wann er stable wird?

                                      Naja wir sind hier gerade im Alpha Test ... Wenn alles klappt gehen wir diese Woche noch ins Beta/Latest. Dann hngt es vom User-Feedback ab wie schnell wir Stable gehen. Aber frühestens 14 tage nach Beta

                                      1 Reply Last reply Reply Quote 0
                                      • apollon77
                                        apollon77 last edited by

                                        AUf GitHub ist eine neue Version - immer noch v2.1.0 ... also bitte nach Update manuell Adapter neustarten.

                                        passt bei euch alles?

                                        Chaot 1 Reply Last reply Reply Quote 0
                                        • Chaot
                                          Chaot @apollon77 last edited by

                                          @apollon77
                                          Mal eine Frage.
                                          Ich arbeite scheinbar mit InfluxDB Version 1.6.4 in einem Proxmox Container.
                                          Ist es sinnvoll ein Update zu machen?
                                          Welche Version wäre sinnvoll?
                                          Gibt es irgendwo eine verständliche Anleitung dafür?
                                          Mir sind die vorhandenen Daten nicht unbedingt wichtig falls die verloren gehen. Wäre zwar schön die zu übernehemn, aber wenn es sich nicht vermeiden lässt dann muss ich eben damit leben.

                                          Thomas Braun apollon77 2 Replies Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Chaot last edited by

                                            @chaot
                                            Dann arbeitest du offenbar mit den distributionsseitig gelieferten Paket/Softwarestand.

                                            apt policy influxdb
                                            

                                            zeigt das Repository.
                                            Wenn du nichts vermisst (und das scheint ja der Fall zu sein), dann würde ich die Version und das Repository auch beibehalten

                                            Chaot 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            842
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            43
                                            293
                                            45323
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo