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
Next revisionBoth sides next revision
collectd_graphite_grafana [2017/04/01 13:08] – [Konfiguration] brotcollectd_graphite_grafana [2017/04/07 16:57] brot
Line 72: Line 72:
 </code> </code>
  
-<file shell /etc/uwsgi/apps-available/graphite-api.ini>+<file shell /etc/uwsgi/apps-available/graphite.ini>
  
 [uwsgi] [uwsgi]
 processes = 2 processes = 2
-socket = localhost:8080 
-#zugriff auf db  
 uid = _graphite uid = _graphite
 gid = _graphite gid = _graphite
 +chdir = /usr/share/graphite-web
 +file = graphite.wsgi
 +chmod-socket = 666
  
-#py version 
-plugins = python27 
  
-#wo die app liegt 
-chdir /usr/share/graphite-web/ 
-file = graphite.wsgi 
 </file> </file>
  
Line 97: Line 93:
     location / {     location / {
         include uwsgi_params;         include uwsgi_params;
-        uwsgi_pass localhost:8080;+        uwsgi_pass unix:/run/uwsgi/app/graphite/socket;
     }     }
 } }
 </file> </file>
 <code bash -> <code bash ->
-root@minipi:/home/pi# ln -sv /etc/uwsgi/apps-available/graphite-api.ini /etc/uwsgi/apps-enabled/ +root@minipi:/home/pi# ln -sv /etc/uwsgi/apps-available/graphite.ini /etc/uwsgi/apps-enabled/ 
-‘/etc/uwsgi/apps-enabled/graphite-api.ini’ -> ‘/etc/uwsgi/apps-available/graphite-api.ini’+‘/etc/uwsgi/apps-enabled/graphite.ini’ -> ‘/etc/uwsgi/apps-available/graphite.ini’
 root@minipi:/home/pi# ln -sv /etc/nginx/sites-available/graphite.conf /etc/nginx/sites-enabled/ root@minipi:/home/pi# ln -sv /etc/nginx/sites-available/graphite.conf /etc/nginx/sites-enabled/
 ‘/etc/nginx/sites-enabled/graphite.conf’ -> ‘/etc/nginx/sites-available/graphite.conf’ ‘/etc/nginx/sites-enabled/graphite.conf’ -> ‘/etc/nginx/sites-available/graphite.conf’
Line 110: Line 106:
 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 nur [[https://packages.debian.org/unstable/web/grafana|in Debian unstable ]](Stand April 2017). Wir brauchen also das "unstable" Repository, und müssen aufpassen dass wir nicht unsere ganze Software über dieses beziehen. Dafür gibt es das [[https://wiki.debian.org/AptPreferences|Pinning von Repositorys]].
 +
 +<code bash ->
 +root@minipi:/home/pi# echo "deb http://ftp.de.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list.d/deb_unstable.list
 +root@minipi:/home/pi# cat >> /etc/apt/preferences.d/pinning << EOF
 +> Package: *
 +> Pin: release a=stable 
 +> Pin-Priority: 999
 +
 +> Package: *
 +> Pin: release a=unstable
 +> Pin-Priority: 1  
 +> EOF
 +root@minipi:/home/pi# apt update
 +root@minipi:/home/pi# apt install grafana
 +</code>
 +
 +
 +
  • collectd_graphite_grafana.txt
  • Last modified: 2017/07/05 13:40
  • by brot