livebox: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
livebox:graphite [2014/09/12 12:04] brettlivebox:graphite [2014/10/01 03:05] (current) – [xAP Applet configuration] brett
Line 4: Line 4:
   * Setting up the graphite monitoring engine   * Setting up the graphite monitoring engine
   * Configuring to feed xAP   * Configuring to feed xAP
 +
 +===== Introduction =====
 +
 +Where as cacti uses a __pull__ mechanism to reach out and gather statistics which requires something to cache previous values until the cacti back-end is ready to get them.  Graphite on the other hand uses a __push__ mechanism which is much simpler.  It also means that as new xAP data elements are created they are automatically fed into your charts with zero additional work, unlike cacti which requires lots of extra effort for each new item you want to store and graph.
 +
 +Its the preferred charting solution for xAP data.
 +
 +{{:livebox:graphitexap.png?direct&640|}}
  
 ===== Setting up Graphite ===== ===== Setting up Graphite =====
Line 84: Line 92:
 ====== xAP Applet configuration ====== ====== xAP Applet configuration ======
  
-The sample applet that can feed data to a Carbon data aggregator is called graphiteApplet.lua and can be found in the plugboard samples directory.+The sample applet that can feed data to a Carbon data aggregator is called [[http://code.google.com/p/livebox-hah/source/browse/branches/portable/userapps/hah/xap-plugboard/samples/graphiteApplet.lua|graphiteApplet.lua]] and can be found in the plugboard samples directory.
  
-The only change require is to adjust the IP address in the sample to that of your server.+The only change required is to adjust the IP address to that of your graphite server.
 <code lua> <code lua>
--- Adjust with your graphite host IP 
 graphite={port=2003,host="192.168.4.46"} graphite={port=2003,host="192.168.4.46"}
 </code> </code>
  
 +Copy the sample to the /etc/plugboard directory, edit, then restart the plugboard engine
 +<code>
 +/etc/init.d/xap restart plugboard
 +</code>
 +
 +By default the applet will feed all xAPBSC.event data items to the back-end for recording and charting, along with the [[http://www.xapautomation.org/index.php?title=xAP_Weather_Schema|weather.data]] schema.   Adjust the code to suit your environment.
 +
 +{{tag>graphite}}
  • livebox/graphite.1410523472.txt.gz
  • Last modified: 2014/09/12 12:04
  • by brett