Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| collectd_graphite_grafana [2017/04/01 12:39] – brot | collectd_graphite_grafana [2017/07/05 13:40] (current) – [Konfiguration] brot | ||
|---|---|---|---|
| Line 58: | Line 58: | ||
| === Graphite-web === | === Graphite-web === | ||
| + | - graphite initialisieren | ||
| - graphite api als uwsgi app definieren | - graphite api als uwsgi app definieren | ||
| - nginx seite definieren | - nginx seite definieren | ||
| - configs aktivieren, dienste neustarten | - configs aktivieren, dienste neustarten | ||
| - | <file shell / | + | <code bash -> |
| + | |||
| + | root@minipi:/ | ||
| + | (secret salt setzen) | ||
| + | |||
| + | root@minipi:/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | <file shell / | ||
| [uwsgi] | [uwsgi] | ||
| processes = 2 | processes = 2 | ||
| - | socket | + | uid = _graphite |
| - | plugins | + | gid = _graphite |
| - | module | + | chdir = / |
| + | file = graphite.wsgi | ||
| + | chmod-socket = 666 | ||
| + | |||
| </ | </ | ||
| Line 78: | Line 93: | ||
| location / { | location / { | ||
| include uwsgi_params; | include uwsgi_params; | ||
| - | uwsgi_pass | + | uwsgi_pass |
| } | } | ||
| } | } | ||
| </ | </ | ||
| + | |||
| <code bash -> | <code bash -> | ||
| - | root@minipi:/ | + | root@minipi:/ |
| - | ‘/ | + | ‘/ |
| root@minipi:/ | root@minipi:/ | ||
| ‘/ | ‘/ | ||
| root@minipi:/ | root@minipi:/ | ||
| + | root@minipi:/ | ||
| root@minipi:/ | root@minipi:/ | ||
| root@minipi:/ | root@minipi:/ | ||
| </ | </ | ||
| + | |||
| + | ===== 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:// | ||
| + | |||
| + | <code bash -> | ||
| + | apt install apt-transport-https curl | ||
| + | curl https:// | ||
| + | echo "deb https:// | ||
| + | apt update | ||
| + | apt install grafana | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||