Old Graphite: Difference between revisions
From charlesreid1
| Line 27: | Line 27: | ||
</pre> | </pre> | ||
= | =Setting Things Up= | ||
Once you've installed everything, assuming you went with the default installation configuration, graphite will be in <code>/opt/graphite</code>. That includes Graphite web app frontends, Carbon, and Whisper. | Once you've installed everything, assuming you went with the default installation configuration, graphite will be in <code>/opt/graphite</code>. That includes Graphite web app frontends, Carbon, and Whisper. | ||
| Line 33: | Line 33: | ||
Now I'll cover how to get each component running and get simple I/O working. | Now I'll cover how to get each component running and get simple I/O working. | ||
== | ==Setting Up Graphite== | ||
I followed these instructions for getting Graphite set up and installed and running and all that: | I followed these instructions for getting Graphite set up and installed and running and all that: | ||
| Line 45: | Line 45: | ||
The way to test Graphite is not really to test it on its own, but rather to test it via/with Carbon. | The way to test Graphite is not really to test it on its own, but rather to test it via/with Carbon. | ||
== | ==Setting Up Carbon== | ||
To get Carbon running, you have to start with some configuration files, described on this page: | To get Carbon running, you have to start with some configuration files, described on this page: | ||
| Line 53: | Line 53: | ||
Basically, you give some thought to your schema - see this page http://graphite.wikidot.com/getting-your-data-into-graphite for information on what I mean. Decide your time series data naming convention, then decide how much data to gather, at what frequency. | Basically, you give some thought to your schema - see this page http://graphite.wikidot.com/getting-your-data-into-graphite for information on what I mean. Decide your time series data naming convention, then decide how much data to gather, at what frequency. | ||
Enter information about your storage schema in your <code>storage-schemas.conf</code> file, located in <code>/opt/graphite/conf/storage-schemas.conf</code>; example: | |||
<pre> | <pre> | ||
| Line 64: | Line 64: | ||
which will gather data at a frequency of 1 Hz for 2 hours (7200 seconds total). | which will gather data at a frequency of 1 Hz for 2 hours (7200 seconds total). | ||
Once you've | There are a couple of other files to modify, specifically <code>relay-rules.conf</code> and <code>carbon.conf</code>. For these, I used the examples provided by the installation. | ||
Once you've finished, it's time for the hello world tests. | |||
=Hello World= | |||
Revision as of 20:35, 25 June 2014
Installing
Prerequisites
PyCairo prerequisite: PyCairo
Installing Graphite
Git checkout
cd git dir
python setup.py build && python setup.py install
Installing Carbon
python setup.py build && python setup.py install
Installing Whisper
python setup.py build && python setup.py install
Setting Things Up
Once you've installed everything, assuming you went with the default installation configuration, graphite will be in /opt/graphite. That includes Graphite web app frontends, Carbon, and Whisper.
Now I'll cover how to get each component running and get simple I/O working.
Setting Up Graphite
I followed these instructions for getting Graphite set up and installed and running and all that:
I installed graphite from source to the default location:
The way to test Graphite is not really to test it on its own, but rather to test it via/with Carbon.
Setting Up Carbon
To get Carbon running, you have to start with some configuration files, described on this page:
Basically, you give some thought to your schema - see this page http://graphite.wikidot.com/getting-your-data-into-graphite for information on what I mean. Decide your time series data naming convention, then decide how much data to gather, at what frequency.
Enter information about your storage schema in your storage-schemas.conf file, located in /opt/graphite/conf/storage-schemas.conf; example:
[dummy] priority = 100 pattern = dummy retentions = 1:7200
which will gather data at a frequency of 1 Hz for 2 hours (7200 seconds total).
There are a couple of other files to modify, specifically relay-rules.conf and carbon.conf. For these, I used the examples provided by the installation.
Once you've finished, it's time for the hello world tests.