Skip to content
fg2it edited this page Jun 27, 2018 · 16 revisions

Warning Notice: End of Life

Starting from v5.2.0-beta1 Grafana introduced official support for armv7 and arm64 linux platforms. Many thanks to them for that.

As a consequence, this repo is no more needed and stops support starting from v5.2.0-beta1.

If you are using unofficial builds from this repo, you are invited to upgrade to official builds.

Should you need armv6 build, you are invited to ask official support.


What

This repo intends to provide Grafana deb packages for Raspberry Pi and arm64. These packages are unofficial builds, made with as few modifications as possible from the original Grafana repo. In fact, last builds are made with no modification at all.

State: End of Life

The last supported version is v5.1.4. From v5.2.0, you should use official release for arm/arm64.

For raspberry pi 2 and 3 (wheezy, jessie and stretch distro), you can use

For raspberry pi 1 (wheezy, jessie, stretch distro), you will have to use the bintray repo.

For arm64 (jessie, stretch), you can use

Doc

Beside install that requires rather straightforward changes, there is nothing specific about these builds. So see the official doc.

Install

By Hand

From Github Release

(only for raspberry pi 2/pi 3 and arm64)

sudo apt-get install adduser libfontconfig
curl -LO https://github.com/fg2it/grafana-on-raspberry/releases/download/v5.0.3/grafana_5.0.3_armhf.deb
sudo dpkg -i grafana_5.0.3_armhf.deb

(For arm64, change armhf by arm64)

From Bintray

You can also download .deb package from the Bintray repo :

(look in main/, testing/ or experimental).

Once you selected the package, you can proceed as for Github release, eg:

sudo apt-get install adduser libfontconfig
curl -L https://bintray.com/fg2it/deb-rpi-1b/download_file?file_path=main%2Fg%2Fgrafana_5.0.3_armhf.deb -o /tmp/grafana_5.0.3_armhf.deb
sudo dpkg -i /tmp/grafana_5.0.3_armhf.deb

With apt From Bintray Debian Repository

Install some packages and add the bintray pubkey to the apt keyring

sudo apt-get install apt-transport-https curl
curl https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -

Step 1: Update your apt source

(To do only once)

For raspberry pi 1

use

echo "deb https://dl.bintray.com/fg2it/deb-rpi-1b jessie main" | sudo tee -a /etc/apt/sources.list.d/grafana.list

(this repo works also for pi 2 and pi 3, but the binary could be slower than the next one)

For raspberry pi 2 and pi 3

use

echo "deb https://dl.bintray.com/fg2it/deb jessie main" | sudo tee -a /etc/apt/sources.list.d/grafana.list

For all rasberry pi

  • change jessie for wheezy or stretch depending on your debian version
  • change main for testing if you want to install beta release.

For arm64

use

echo "deb https://bintray.com/fg2it/deb-arm64/grafana-on-raspberry/ stretch main" | sudo tee -a /etc/apt/sources.list.d/grafana.list

you can also use jessie instead of stretch. Prior to v5.1.0, arm64 packages were only available in "experimental". From v5.1.0, packages are in main or testing (for beta).

Step 2: Install

sudo apt-get update
sudo apt-get install grafana

you can check available versions with sudo apt-cache madison grafana

Docker

As a side product, this repo also hosts files I used to create Armhf Docker images fg2it/grafana-armhf:<version> which are available on dockerhub.

A convenient way to get the available <version> from command line is:

curl -sS https://registry.hub.docker.com/v2/repositories/fg2it/grafana-armhf/tags/ | python -m json.tool | grep name

Docker Container Doc

See the Readme. It is based on the official doc with straightforward changes.

DIY

I try to provide extensive notes on how I built the packages. You can find them in the repo.

  • For the last stable version, have a look at ci directory.
  • For the last stable v4 version, have a look at ci directory.
  • For the last stable v3 version, have a look at Readme.txt for the debian package.
  • For the docker images, this is less user friendly : see the Dockerfile and related scripts in the corresponding folder.