collectd_graphite_grafana

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
collectd_graphite_grafana [2017/04/01 13:35] – [Konfiguration] brotcollectd_graphite_grafana [2017/07/05 13:37] – [Konfiguration] brot
Line 97: Line 97:
 } }
 </file> </file>
 +
 <code bash -> <code bash ->
 root@minipi:/home/pi# ln -sv /etc/uwsgi/apps-available/graphite.ini /etc/uwsgi/apps-enabled/ root@minipi:/home/pi# ln -sv /etc/uwsgi/apps-available/graphite.ini /etc/uwsgi/apps-enabled/
Line 103: Line 104:
 ‘/etc/nginx/sites-enabled/graphite.conf’ -> ‘/etc/nginx/sites-available/graphite.conf’ ‘/etc/nginx/sites-enabled/graphite.conf’ -> ‘/etc/nginx/sites-available/graphite.conf’
 root@minipi:/home/pi# rm /etc/nginx/sites-enabled/default root@minipi:/home/pi# rm /etc/nginx/sites-enabled/default
 +root@minipi:/home/pi# su _graphite -s /bin/bash
 +_graphite@pi-grafana-sensor:~$ cd /usr/lib/python2.7/dist-packages/graphite/
 +_graphite@pi-grafana-sensor:/usr/lib/python2.7/dist-packages/graphite$ python manage.py syncdb
 +(...)
 +_graphite@pi-grafana-sensor:/usr/lib/python2.7/dist-packages/graphite$ exit
 root@minipi:/home/pi# systemctl restart uwsgi root@minipi:/home/pi# systemctl restart uwsgi
 root@minipi:/home/pi# systemctl restart nginx root@minipi:/home/pi# systemctl restart nginx
 </code> </code>
 +
 +===== Grafana =====
 +
 +==== Installation ====
 +
 +Grafana soll, wie auch der Rest der Software, auf einem Raspberry Pi laufen. Die Grafana-Pakete gibt es allerdings nicht für raspian, und die debian unstable pakete wollen auf einem rpi1 nicht so ohne weiteres laufen. Aber es gibt abhilfe: Ein [[https://github.com/fg2it/grafana-on-raspberry|Github Projekt für grafana auf Raspberys]] inkl dazugehörigem [[https://dl.bintray.com/fg2it/deb-rpi-1b/|repository]]
 +
 +<code bash ->
 +apt install apt-transport-https curl
 +curl https://bintray.com/user/downloadSubjectPublicKey?username=bintray | sudo apt-key add -
 +echo "deb https://dl.bintray.com/fg2it/deb-rpi-1b jessie main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
 +apt update
 +apt install grafana
 +</code>
 +
 +
 +
  • collectd_graphite_grafana.txt
  • Last modified: 2017/07/05 13:40
  • by brot