fg2it / grafana-on-raspberry Goto Github PK
View Code? Open in Web Editor NEWGrafana packages for raspberry pi (armv6/armv7) and aarch64/arm64
Grafana packages for raspberry pi (armv6/armv7) and aarch64/arm64
Hi,
i just figured out that the latest version seems not work properly on my installation.
Only a blank/white page is displayed and the network logs says that the js scripts couldn't be loaded (404)
Is anyone facing this issue too?
Hello,
my Grafana Dashboard has a default UID (example: /MGggfhetf/) and I would like to change the UID to a specific name. What should I do? How can I change the name of the UID when it is necessary?
Best regards
Is it possible to publish packages for Ubuntu releases? I'm running xenial on an armhf (cubox-i) platform.
Thank you for your awesome work providing Grafana packages for the Raspberry Pi for easy installation.
Since Debian Stretch was released a few months ago and Raspbian also released their version based on Debian Stretch it would be awesome if the repository would be updated for Stretch.
Hi, could you help me and others to build and share the new grafana 4.5.1 release for armhf. Thx
Hi, i have Odroid XU4
Linux manager 4.14.29-125 #1 SMP PREEMPT Thu Mar 22 21:40:52 UTC 2018 armv7l armv7l armv7l GNU/Linux
Could you build an armel version of the package pls?
I was following your procedure for Grafana v2.1.2 on Raspberry PI 1B+. After 7 hours installing one GO then another and finally compiling NodeJS for 4 hours I ran into a trouble in NodeJS.
make[1]: *** [/home/pi/node-v0.12.7/out/Release/obj.target/v8_snapshot/geni/snapshot.cc] Error 132
It is known problem in NodeJS on Raspberry PI 1 (due to ARMv6). Problem is that it took me 7+ hours to discover it.
I think it would be nice to state in your procedure that it is only for Raspberry 2.
Good job otherwise.
Michal
Hey,
after searching for a current Grafana on ARMHF platform in deb package format I found your page.
I use Ubuntu Xenial/Trusty at the moment instead of Debian.
Do you see a chance to also make the packages available for that? Or can I directly use e.g. the Jessie package?
I just found out that Xenial seems tobe based on Debian Stretch, so what about packages for Stretch ? :-)) ...
Ingo Fischer
I follow the Wiki instructions to install on a RPI 1. I get the following error:
curl https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 717k 100 717k 0 0 177k 0 0:00:04 0:00:04 --:--:-- 177k gpg: no valid OpenPGP data found.
And of course apt says:
sudo apt-get update ... W: GPG error: https://dl.bintray.com jessie Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 379...
Could you introduce the latest tag for your images on hub.docker.com? I would like to stay on the latest version without the need to change my docker-compose.yml for each new release.
Thanks!
I have the feeling there is no persistent storage of the config files possible.
Hi, i have installed the system but i can't add the source correctly. My system is based on InfluxDB v1.0.2
and the latest grafana docker. The error says:
InfluxDB Error: undefined
It's really unuseful. My DB works, i can access it via GUI, from http://rasp.orbax:8083
, but if i add the source with this URL: http://localhost:8086
it not work. Also from http://localhost:8083
.
Follow grafana/grafana-docker#146 when merged (planned for v5.1.0).
Expect to solve #31
Odroid U3, Ubuntu 16.04 lts
I typed "influxdb" but it says "command not found".
Influxdb service works good. but I can't use command line.
Some of my dashboard panel, when i'm pass from 3h visualization to 1h disappears. If i try to move over the graph the data is actually present, only the visualization fail...
Hi,
unfortunately it's takes me too long to figure out that mya brand new pi zerow has the old v6 cpu son i can't use the same package as on my pi3. is there any good reason why not use the same package on all pi as eg influx do his pacakge whic hcan be run on all raspberry pi. does it really has any advantage to build with different instruction set?
Hello, i'm trying to compile v3.0. Can you help with this errors?
root@raspberrypi:/tmp/graf-build/src/github.com/grafana/grafana# npm install
\
> [email protected] install /tmp/graf-build/src/github.com/grafana/grafana/node_modules/phantomjs-prebuilt
> node install.js
Considering PhantomJS found at /usr/local/bin/phantomjs
Found PhantomJS at /usr/local/bin/phantomjs ...verifying
PhantomJS detected, but wrong version 2.0.0 @ /usr/local/bin/phantomjs.
Unexpected platform or architecture: linux/arm
It seems there is no binary available for your platform/architecture
Try to install PhantomJS globally
npm ERR! Linux 4.1.21-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.1
npm ERR! npm v2.14.20
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node install.js'.
npm ERR! This is most likely a problem with the phantomjs-prebuilt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs phantomjs-prebuilt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls phantomjs-prebuilt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /tmp/graf-build/src/github.com/grafana/grafana/npm-debug.log
root@raspberrypi:/tmp/graf-build/src/github.com/grafana/grafana# phantomjs --version
2.0.0
I wanted to let you know that we (@cloudalchemy) wrote an ansible role to install grafana on most platforms with various CPU architectures, not only x86_64. And somehow this role is currently one of recommended method of provisioning grafana according to official docs. It wouldn't be possible without you awesome work, so thanks a lot!
Just wanted to ask if you would add any info about this installation method somewhere in your docs?
hey,
I used the following to create the 3.1.1 docker process:
docker run -d -p 3000:3000 --name grafana3 -v grafana-storage3:/var/lib/grafana -e "GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-piechart-panel" fg2it/grafana-armhf:v3.1.1
The plugins were not installed automatically ...
I was able to use
docker exec grafana3 grafana-cli plugins install grafana-clock-panel
docker exec grafana3 grafana-cli plugins install grafana-piechart-panel
to install the plugins manually and now they are available ...
Will try now with v4.0.1 -> works there, so only 3.1.1 affected!
As instructed on https://github.com/fg2it/grafana-on-raspberry/wiki, I added
echo "https://dl.bintray.com/fg2it/deb-rpi-1b jessie main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
However when running apt-get update
, I get:
E: Type 'https://dl.bintray.com/fg2it/deb-rpi-1b' is not known on line 1 in source list /etc/apt/sources.list.d/grafana.list
E: The list of sources could not be read.
Upon closer inspected it seemed the correct command should be:
echo "deb https://dl.bintray.com/fg2it/deb-rpi-1b jessie main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
(note the deb )
Now apt-get update
does get somewhat further, it returns:
W: Failed to fetch https://dl.bintray.com/fg2it/deb-rpi-1b/dists/jessie/Release Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)
E: Some index files failed to download. They have been ignored, or old ones used instead.
Is there anything I should do?
Thanks for your effort of getting this to work on Raspberry Pi.
Hi @fg2it,
I like to do the following proposal regarding grafana and docker:
What do you think about it? :-)
Building for armv7 fails when installing crossbuild-essential-armhf
in docker
+ apt-get install -y crossbuild-essential-armhf
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
crossbuild-essential-armhf : Depends: gcc-arm-linux-gnueabihf (>= 4.9.1-1) but it is not going to be installed
Depends: g++-arm-linux-gnueabihf (>= 4.9.1-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Could you please link to the thread at
grafana/grafana#13008 in your text about asking for official support for ARMv6?
Thank you for all of your work on getting Grafana running on the Pi :)
I think the end of life notice is confusing/misleading where it says this repo is "no more needed". The link to the official "armv7 and arm64" packages does not include a docker image, so this repo seems to be somewhat useful and the last known way to easily get a working grafana on docker... on arm.
# docker pull fg2it/grafana-armhf
Using default tag: latest
Error response from daemon: manifest for fg2it/grafana-armhf:latest not found
The missing Docker tag "latest" causes the above errror message on my Raspbian system.
The official Grafana Docker image provides a "latest" tag and it is the default for Docker if you don't provide a specific tag name.
Could you please provide the "latest" tag like the official Grafana Docker image does?
If you could tag the newest non-beta docker image with "latest", I'd really appreciate it! It would make auto-updates much easier with tools like watchtower.
It is still not clear what I have to do to install grafana on my rpi2. Do I download the. Deb FILe and build it or do I have to do the whole procedure in the Readme file?
i really love your armhf build. and since grafana support official bins on armhf its a big thumbs up for them
still the docker instance is only amd64 not arm
When I try to start the container I get the following error:
lvl=crit msg="Failed to parse /etc/grafana/grafana.ini, open /etc/grafana/grafana.ini: permission denied%!(EXTRA []interface {}=[])"
using fg2it/grafana-armhf:v5.0.3
Hello @fg2it,
Currently, I have my own docker image available on docker hub, which is based upon yours. It adds some configurations to run the image under a custom uid and gid.
However looking at the official v5.1.0, this custom uid and gid should now be supported and my own docker image wouldn't be needed anymore.
I've tried your lastest version like this:
version: "3.6"
services:
grafana:
image: fg2it/grafana-armhf:v5.1.0
ports:
- "3000:3000"
volumes:
# - /mnt/swarm-volumes/grafana/data:/var/lib/grafana
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
# user: "1000"
environment:
- GF_UID=1000
- GF_GID=1000
deploy:
replicas: 1
Within the container:
root@c3cb3da395dd:/# id grafana
uid=472(grafana) gid=472(grafana) groups=472(grafana)
root@c3cb3da395dd:/# ls -al /var/lib/grafana/
total 404
drwxrwxrwx 1 grafana grafana 4096 Apr 29 11:33 .
drwxr-xr-x 1 root root 4096 Apr 28 22:26 ..
-rw-r--r-- 1 grafana grafana 393216 Apr 29 11:33 grafana.db
drwxrwxrwx 2 grafana grafana 4096 Apr 28 22:26 plugins
root@c3cb3da395dd:/# echo $GF_UID $GF_GID
1000 1000
So from the info above you can see that GF_UID and GF_GID didn't change the uid and gid for user grafana.
I also tried this according to grafana docker install:
version: "3.6"
services:
grafana:
image: fg2it/grafana-armhf:v5.1.0
ports:
- "3000:3000"
volumes:
# - /mnt/swarm-volumes/grafana/data:/var/lib/grafana
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
user: "1000"
# environment:
# - GF_UID=1000
# - GF_GID=1000
deploy:
replicas: 1
Within the container:
root@83b148de388f:/# id grafana
uid=472(grafana) gid=472(grafana) groups=472(grafana)
root@83b148de388f:/# ls -al /var/lib/grafana/
total 404
drwxrwxrwx 1 grafana grafana 4096 Apr 29 11:40 .
drwxr-xr-x 1 root root 4096 Apr 28 22:26 ..
-rw-r--r-- 1 1000 root 393216 Apr 29 11:40 grafana.db
drwxrwxrwx 2 grafana grafana 4096 Apr 28 22:26 plugins
So from the info above you can see that user: 1000 didn't change the uid and gid for user grafana, but it did set user 1000 on the grafana.db. The plugins directory however remains assigned to grafana user and group.
I was expecting in one of the above try-outs that all files and dirs within /var/lib/grafana would belong to grafana:grafana, where the uid and gid both could be customly set, so that persistence would be possible with an "external" user.
While writing this, I just realise that it probably is an issue upon the official grafana ...
Can you help me out on this one or do I need to submit an issue at official grafana project?
Thanks in advance.
Raymond
Hi! I just started playing with your docker image of grafana. It installs and runs alright. Now I need to make it available on my local network (and in the future also publicly?). Do you have any idea how I could proceed to make it happen? I know it is a super broad question, but I have no idea how to even start tackling it.
Any help would be much appreciated!
Grafana 3.1.1 exists since August 1, 2016. Can you please provide Debian packages for this release, too.
Thanks a lot.
Hello,
I have discovered this projet Yesterday and it sedicung me like nothing ! ^^
I just block on one thing for the moment,
In conf/rig-monitor.conf
RIG_LIST
I am not sure to understand what is the PLUG IP
Someone could tell me more about it ?
I know my rigs IP(s), is it the same IP ?
Thanks by advance ๐
Wrong place, mb :)
I installed your build on my Raspberry but unfortunately it is not able to retrieve metrics from Prometheus.
I`ve put a question on SO which provides some more background information about my installation. If you don't mind you could have a look there. If information is missing just give me a hint.
hi,
since upstream release 4.3.2 it'd be nice to update pi packages too.
regards.
I've installed the docker image on my rpi3, then I made changes to etc/grafana.ini but when I start grafana it ignores the changes that I've made.
Is the ini placed somewhere else when it's a docker image?
And one more thing, after I've run "docker run -d --name=grafana -p 3000:3000 fg2it/grafana-armhf:4.2.0" I can't run the other commands like:
docker run \ -d \ -p 3000:3000 \ --name=grafana \ -e "GF_SERVER_ROOT_URL=http://grafana.server.name" \ -e "GF_SECURITY_ADMIN_PASSWORD=secret" \ fg2it/grafana-armhf:v4.1.2
That only gives me an error:
docker: Error response from daemon: Conflict. The container name "/grafana" is already in use by container aa4432cbe755560aeabc16e4cf2d1f799cec238b49306b14c2e22ed17a6f6940. You have to remove (or rename) that container to be able to reuse that name.. See 'docker run --help'.
I'm starting grafana by docker start grafana since the docker run command only works once since I already have a container named grafana after the first run
Not really an issue - but your docker packages helped me tremendously! Thanks :) If you are interested, I have some Dockerfiles for influxdb on ARM laying around.
Hello, I tried to install Grafana on a Raspi 3 with a brand new flashed Raspian.
It was not working, so I checked the config file grafana.ini and all the entries had a semicolon ';' at the beginning of every line. I removed all of them and now Grafana is working perfectly.
Thanks very much for building these rpi packages.
I'm having the pine64, which is an arm64 architecture and also not provided with the regular repository.
I now installed your armhf package, but would be great if a arm64 package would be available as well.
Hi,
I tried to to install Grafana on a Raspberry Pi Zero W. I figured if the armv6 Version works for the Pi 1 it should work for the Zero as well.
As I am completely new to the raspi party, I thought I'll keep it simple and install 4.0.1 from your example on the wiki page:
sudo apt-get install adduser libfontconfig curl -L https://dl.bintray.com/fg2it/deb-rpi-1b/main/g/:grafana_4.0.1-1480722218_armhf.deb -o /tmp/grafana_4.0.1-1480722218_armhf.deb sudo dpkg -i /tmp/grafana_4.0.1-1480722218_armhf.deb
Install seems fine, no errors and none when I try to start the service. However I cannot access the web-gui and HTOP show no process. So I tried to see the status and this showed up:
grafana-server.service - Grafana instance Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled) Active: failed (Result: start-limit) since Tue 2017-03-21 07:33:48 UTC; 1min 38s ago Docs: http://docs.grafana.org Process: 1370 ExecStart=/usr/sbin/grafana-server --config=${CONF_FILE} --pidfile=${PID_FILE} cfg:default.paths.logs=${LOG_DIR} cfg:default.paths.data=${DATA_DIR} cfg:default.paths.plugins=${PLUGINS_DIR} (code=killed, signal=ILL) Main PID: 1370 (code=killed, signal=ILL)
Any ideas?
I have RPi Zero W V1.1 (openhabian) but I can't run grafana after installation.
โ grafana-server.service - Grafana instance
Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Sun 2018-05-06 23:18:18 +08; 2s ago
Docs: http://docs.grafana.org
Process: 3911 ExecStart=/usr/sbin/grafana-server --config=${CONF_FILE} --pidfile=${PID_FILE_DIR}/grafana-server.pid cfg:default.paths.logs=${LOG_DIR} cfg:default.paths.data=${DATA_DIR} cfg:default.paths.plugins=${PLUGINS_DIR} cfg:default.paths.provisioning=${PROVISIONING_CFG_DIR} (code=killed, signal=ILL)
Main PID: 3911 (code=killed, signal=ILL)
May 06 23:18:18 RadarCNSSO systemd[1]: grafana-server.service: Failed with result 'signal'.
May 06 23:18:18 RadarCNSSO systemd[1]: grafana-server.service: Service hold-off time over, scheduling restart.
May 06 23:18:18 RadarCNSSO systemd[1]: Stopped Grafana instance.
May 06 23:18:18 RadarCNSSO systemd[1]: grafana-server.service: Start request repeated too quickly.
May 06 23:18:18 RadarCNSSO systemd[1]: Failed to start Grafana instance.
May 06 23:18:18 RadarCNSSO systemd[1]: grafana-server.service: Unit entered failed state.
May 06 23:18:18 RadarCNSSO systemd[1]: grafana-server.service: Failed with result 'signal'.
Is it possible you put the results in an Executables folder so it can be used without me setting up the re-compile myself? Yes, I'm that lazy.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.