Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. General Discussion
  3. influxdb and grafana on raspberrypi

influxdb and grafana on raspberrypi

Scheduled Pinned Locked Moved General Discussion
16 Posts 6 Posters 17.7k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fabien
    wrote on last edited by
    #7

    @tbowmo : in package.sh change line 70 to go1.5.2. This is the only modification i made.

    1 Reply Last reply
    0
    • tbowmoT Offline
      tbowmoT Offline
      tbowmo
      Admin
      wrote on last edited by tbowmo
      #8

      @Fabien

      I found the problem.. github.com/influxdb is renamed to github.com/influxdata, and all guides that I have followed pointed to influxdb. Tried to go with the influxdata instead. And I got it to build..

      So the recipe that I followed is the following (Taken from the French site that you mentioned above, and modified with my findings)

      
      $ wget https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer
      $ chmod +x gvm-installer 
      $ ./gvm-installer
      Cloning from https://github.com/moovweb/gvm.git to /home/pi/.gvm
      No existing Go versions detected
      Installed GVM v1.0.22
      Please restart your terminal session or to get started right away run
       `source /home/pi/.gvm/scripts/gvm`
      $ source /home/pi/.gvm/scripts/gvm
      # Install Go 1.4 before Go 1.5 : https://github.com/moovweb/gvm/issues/155
      $ gvm install go1.4.2
      Downloading Go source...
      Installing go1.4.2...
       * Compiling...
      $ gvm use go1.4.2 --default
      Now using version go1.4.2
      $ gvm install go1.5.3
      Updating Go source... 
      Installing go1.5.3... 
      * Compiling... 
      $ gvm use go1.5.3 --default
      Now using version go1.5.3
      $ sudo apt-get install bison 
      $ sudo apt-get install ruby-dev gcc
      $ sudo gem install fpm # Cf https://github.com/influxdb/influxdb/issues/3557
      $ gvm pkgset create influxdb
      $ gvm pkgset use influxdb
      Now using version go1.5.3@influxdb
      $ go get github.com/tools/godep
      $ go get -t -d github.com/influxdata/influxdb
      $ cd .gvm/pkgsets/go1.5.2/influxdb/src/github.com/influxdata/influxdb
      # Update to use go1.5.3 instead of 1.4.3
      $ sed -i -- 's/go1.4.3/go1.5.3/g' package.sh
      $ ./package.sh -t deb -p 0.9.6
      $ sudo dpkg -i influxdb_0.9.6_armhf.deb
      $ sudo mkdir /var/lib/influxdb
      $ sudo chown influxdb. /var/lib/influxdb
      $ sudo mkdir /var/log/influxdb
      $ sudo chown influxdb. /var/lib/influxdb
      $ sudo systemctl enable influxdb
      $ sudo systemctl start influxdb
      $ /opt/influxdb/influx
      Connected to http://localhost:8086 version 0.9.6
      InfluxDB shell 0.9.6
      
      1 Reply Last reply
      3
      • F Offline
        F Offline
        Fabien
        wrote on last edited by
        #9

        Thank you @tbowmo It will help me when I will compile the last version.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          drock1985
          wrote on last edited by drock1985
          #10

          Not sure if this works for sure or not but, if you are looking for a shortcut.... here is a .deb package made for Ubuntu arm.

          http://launchpadlibrarian.net/218115203/influxdb_0.9.4+dfsg1-1_armhf.deb

          Anyone have any tips for Grafana on an Rpi by chance?

          My Projects
          2 Door Chime Sensor
          Washing Machine Monitor

          1 Reply Last reply
          0
          • tbowmoT Offline
            tbowmoT Offline
            tbowmo
            Admin
            wrote on last edited by
            #11

            @drock1985

            that's a rather old influxdb version, latest is 0.10

            I finally succeeded in getting both influxdb and grafana to install.. (Influx 0.10 and grafana 2.6.0). So now it's graphing time :)

            I have setup node-red to push data into influxdb, so it's independent on the controller that I choose to use..

            Right now it's stored to the sdcard on my raspberry, but since I push electrical utility measurements every second, I believe that I have to setup some kind of external storage, otherwise the sdcard would be worn out..

            YveauxY 1 Reply Last reply
            0
            • tbowmoT tbowmo

              @drock1985

              that's a rather old influxdb version, latest is 0.10

              I finally succeeded in getting both influxdb and grafana to install.. (Influx 0.10 and grafana 2.6.0). So now it's graphing time :)

              I have setup node-red to push data into influxdb, so it's independent on the controller that I choose to use..

              Right now it's stored to the sdcard on my raspberry, but since I push electrical utility measurements every second, I believe that I have to setup some kind of external storage, otherwise the sdcard would be worn out..

              YveauxY Offline
              YveauxY Offline
              Yveaux
              Mod
              wrote on last edited by
              #12

              @tbowmo What's the performance of this setup on RPi?
              I use a real server (dual core Athlon, 4Gb Ram, SSD) to run InfluxDB and Grafana on and even sometimes find it rather slow with large datasets.

              http://yveaux.blogspot.nl

              1 Reply Last reply
              0
              • tbowmoT Offline
                tbowmoT Offline
                tbowmo
                Admin
                wrote on last edited by
                #13

                @Yveaux

                I haven't got that large data amount right now.. Right now only 5 sensors are writing to the influx db:

                4 sensebenders (temperature / humidity). One of them also barometric pressure.. These are only transmitting when temperature / humidity changes..
                1 Electrical utility meter.. this writes a couple of times each second (every time the LED blinks on my utility meter :))

                So far I can't see any issues with speed, but it might change when I've got logs for 6 months in the database.

                I haven't set up a retention plan yet, so currently I keep all data forever..

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Alexander
                  wrote on last edited by
                  #14

                  @tbowmo how did you finally manage to install Grafana on the RPI?
                  Some time ago I tried to do the same on the Domoticz image but gave it up...

                  1 Reply Last reply
                  0
                  • tbowmoT Offline
                    tbowmoT Offline
                    tbowmo
                    Admin
                    wrote on last edited by
                    #15

                    @Alexander

                    I used the description that @fabien linked to in the first reply in this thread. I did however install go 1.5.3 instead of 1.5.2 as mentioned in that article.

                    1 Reply Last reply
                    0
                    • tbowmoT Offline
                      tbowmoT Offline
                      tbowmo
                      Admin
                      wrote on last edited by
                      #16

                      Just found out that influxdata, is now making builds for armhf platform, from version 0.11..

                      So no need to compile stuff yourself for that part..

                      News are on their blog here https://influxdata.com/blog/announcing-influxdb-0-11-ga-kapacitor-telegraf/

                      And install instructions for ubuntu / debian is here https://docs.influxdata.com/influxdb/v0.9/introduction/installation/#ubuntu-debian

                      1 Reply Last reply
                      2
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      22

                      Online

                      11.7k

                      Users

                      11.2k

                      Topics

                      113.1k

                      Posts


                      Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • MySensors
                      • OpenHardware.io
                      • Categories
                      • Recent
                      • Tags
                      • Popular