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/03/10 08:49] – [graphite-web] 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 25: Line 30:
 done done
 </code> </code>
-===== graphite-web ===== 
  
 +===== graphite-web =====
  
 web interface web interface
Line 39: Line 44:
 # choose user and password # choose user and password
 graphite-manage syncdb graphite-manage syncdb
 +chown _graphite:_graphite /var/lib/graphite/graphite.db
 #python /usr/lib/python2.7/dist-packages/graphite/manage.py syncdb #python /usr/lib/python2.7/dist-packages/graphite/manage.py syncdb
 </code> </code>
  
 +==== 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 103: 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.1489132186.txt.gz
  • Last modified: 2017/03/10 08:49
  • by scipio