Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:internetofthings:graphite [2017/02/25 14:03] – [carbon] scipio | projects:internetofthings:graphite [2017/11/18 08:36] (current) – scipio | ||
---|---|---|---|
Line 7: | Line 7: | ||
apt-get install graphite-carbon | apt-get install graphite-carbon | ||
</ | </ | ||
+ | |||
+ | |||
+ | enable boot startup in /// | ||
+ | |||
+ | enable ENABLE_LOGROTATION in /// | ||
extend retentions | extend retentions | ||
Line 25: | Line 30: | ||
done | done | ||
</ | </ | ||
+ | |||
===== graphite-web ===== | ===== 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 uwsgi-plugin-python | + | apt install |
</ | </ | ||
Line 98: | Line 118: | ||
</ | </ | ||
- | |||
- | ===== grafana ===== | ||
- | |||
- | ==== install ==== | ||
- | |||
- | <code bash> | ||
- | echo "deb https:// | ||
- | curl https:// | ||
- | apt update | ||
- | apt install -y grafana | ||
- | systemctl enable grafana-server | ||
- | systemctl start grafana-server | ||
- | </ | ||
- | |||
- | Login to http:// | ||
- | |||
- | add datasource {{ : | ||