projects:internetofthings:graphite

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
projects:internetofthings:graphite [2017/02/21 20:19] – [carbon] scipioprojects:internetofthings:graphite [2017/11/18 08:36] (current) scipio
Line 7: Line 7:
 apt-get install graphite-carbon apt-get install graphite-carbon
 </code> </code>
 +
 +
 +enable boot startup in ///etc/default/graphite-carbon//
 +
 +enable ENABLE_LOGROTATION in ///etc/carbon/carbon.conf//
  
 extend retentions extend retentions
Line 18: Line 23:
 retentions = 30s:7d,5m:30d,10m:1y,1d:10y retentions = 30s:7d,5m:30d,10m:1y,1d:10y
 </file> </file>
-===== graphite-web ===== 
  
 +after changing *schemas.conf older *wsp has to be changed with whisper-resize
 +<code bash>
 +for i in `find /var/lib/graphite/whisper/ha/ -name "*wsp"`; do 
 + whisper-resize $i  30s:7d 5m:30d 10m:1y 1d:10y
 +done
 +</code>
 +
 +===== graphite-web =====
  
 web interface web interface
 <code bash> <code bash>
 apt-get install graphite-web apt-get install graphite-web
 +</code>
  
 +adjust SECRET_KEY (with random string) and TIME_ZONE in ///etc/graphite/local_settings.py//
 +
 +
 +<code bash>
 # choose user and password # choose user and password
-python /usr/lib/python2.7/dist-packages/graphite/manage.py syncdb+graphite-manage syncdb 
 +chown _graphite:_graphite /var/lib/graphite/graphite.db 
 +#python /usr/lib/python2.7/dist-packages/graphite/manage.py syncdb
 </code> </code>
  
-adjust user and password and SECRET_KEY (with random string) in ///etc/graphite/local_settings.py//+==== apache ====
  
 +<code bash>
 +sudo apt-get install apache2 libapache2-mod-wsgi
 +</code>
 +
 +<code bash>
 +sudo cp /usr/share/graphite-web/apache2-graphite.conf /etc/apache2/sites-available
 +sudo a2ensite apache2-graphite
 +</code>
 ==== nginx ==== ==== nginx ====
  
 <code bash> <code bash>
-apt install uwsgi uwsgi-plugin-python+apt install nginx uwsgi uwsgi-plugin-python
 </code> </code>
  
Line 91: Line 118:
 </file> </file>
  
- 
-===== grafana ===== 
- 
-==== install ==== 
- 
-<code bash> 
-echo "deb https://packagecloud.io/grafana/stable/debian/ jessie main" > /etc/apt/sources.list.d/grafana.list 
-curl https://packagecloud.io/gpg.key | sudo apt-key add - 
-apt update 
-apt install -y grafana 
-systemctl enable grafana-server 
-systemctl start grafana-server 
-</code> 
- 
-Login to http://localhost:3000 (admin/admin) 
- 
-add datasource {{ :projects:internetofthings:datasource.png |}} 
  
  • projects/internetofthings/graphite.1487704750.txt.gz
  • Last modified: 2017/02/21 20:19
  • by scipio