Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revisionLast revisionBoth sides next revision | ||
livebox:graphite [2014/09/12 11:32] – [Installation] brett | livebox:graphite [2014/10/01 03:02] – brett | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Graphite ====== | ====== Graphite ====== | ||
- | |||
- | ===== Installation ===== | ||
The installation consists of two parts | The installation consists of two parts | ||
Line 7: | Line 5: | ||
* Configuring to feed xAP | * Configuring to feed xAP | ||
- | ==== Setting up Graphite ==== | + | ===== 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. | ||
+ | |||
+ | Its the preferred charting solution for xAP data. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== Setting up Graphite ===== | ||
+ | |||
+ | What is Graphite? | ||
+ | |||
+ | The documentation for graphite: http:// | ||
Its suggested that you designate a new VM/Server as the graphite | Its suggested that you designate a new VM/Server as the graphite | ||
Line 13: | Line 23: | ||
on a RedHat Enterprise Linux/ | on a RedHat Enterprise Linux/ | ||
may vary with other Operating system hosts. | may vary with other Operating system hosts. | ||
+ | |||
===== Pre requisites ===== | ===== Pre requisites ===== | ||
Line 49: | Line 60: | ||
' | ' | ||
' | ' | ||
- | ' | + | ' |
' | ' | ||
' | ' | ||
Line 57: | Line 68: | ||
Create graphite database | Create graphite database | ||
< | < | ||
- | # mysql -e " | + | # mysql -e " |
# mysql -e "GRANT ALL PRIVILEGES ON graphite.* TO ' | # mysql -e "GRANT ALL PRIVILEGES ON graphite.* TO ' | ||
# mysql -e " | # mysql -e " | ||
Line 71: | Line 82: | ||
# service httpd restart | # service httpd restart | ||
</ | </ | ||
- | If all goes well you can point your browser at your graphite VM and you should be rewarded | + | If all goes well you can point your browser at your graphite VM and you should be rewarded |
- | th the graphite home page. | + | |
Start carbon daemons | Start carbon daemons | ||
Line 80: | Line 90: | ||
</ | </ | ||
+ | ====== 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 only change required is to adjust the IP address to that of your graphite server. | ||
+ | <code lua> | ||
+ | graphite={port=2003, | ||
+ | </ | ||
+ | |||
+ | Copy the sample to the / | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | By default the applet will feed all xAPBSC.event data items to the back-end for recording and charting, along with the [[http:// | ||
+ | |||
+ | {{tag> |