This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:internetofthings:graphite [2016/12/02 19:07] – scipio | projects:internetofthings:graphite [2017/11/18 08:36] (current) – scipio | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| - | ===== graphite-web ===== | + | enable boot startup in /// |
| + | enable ENABLE_LOGROTATION in /// | ||
| + | |||
| + | extend retentions | ||
| + | <file ini / | ||
| + | [carbon] | ||
| + | pattern = ^carbon\. | ||
| + | retentions = 60:90d | ||
| + | |||
| + | [default] | ||
| + | pattern = .* | ||
| + | retentions = 30s: | ||
| + | </ | ||
| + | |||
| + | after changing *schemas.conf older *wsp has to be changed with whisper-resize | ||
| + | <code bash> | ||
| + | for i in `find / | ||
| + | | ||
| + | done | ||
| + | </ | ||
| + | |||
| + | ===== graphite-web ===== | ||
| web interface | web interface | ||
| <code bash> | <code bash> | ||
| apt-get install graphite-web | apt-get install graphite-web | ||
| + | </ | ||
| + | adjust SECRET_KEY (with random string) and TIME_ZONE in /// | ||
| + | |||
| + | |||
| + | <code bash> | ||
| # choose user and password | # choose user and password | ||
| - | python / | + | graphite-manage syncdb |
| + | chown _graphite: | ||
| + | #python / | ||
| </ | </ | ||
| - | adjust user and password and SECRET_KEY (with random string) in /// | + | ==== apache ==== |
| + | <code bash> | ||
| + | sudo apt-get install apache2 libapache2-mod-wsgi | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | sudo cp / | ||
| + | sudo a2ensite apache2-graphite | ||
| + | </ | ||
| ==== nginx ==== | ==== nginx ==== | ||
| <code bash> | <code bash> | ||
| - | apt install uwsgi-plugin-python | + | apt install |
| </ | </ | ||
| Line 82: | Line 118: | ||
| </ | </ | ||
| - | |||
| - | ===== grafana ===== | ||
| - | |||
| - | install grafana from TODO. Start grafana-server service and login to http:// | ||
| - | |||
| - | add datasource {{ : | ||