This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
graphite_on_debian [2014/04/08 13:22] bredal [Configuring Carbon] |
graphite_on_debian [2017/08/18 07:26] morten note about the horrible performance of carbon-cache under Jessie |
||
---|---|---|---|
Line 3: | Line 3: | ||
This is a short guide to installing and configuring a Graphite installation dedicated to NAV on a Debian Wheezy-based server. | This is a short guide to installing and configuring a Graphite installation dedicated to NAV on a Debian Wheezy-based server. | ||
+ | <note tip> | ||
+ | The installation procedure is largely the same on Debian Jessie, but the carbon-cache that comes with Jessie's ''graphite-carbon'' package (0.9.12) has horrible performance characteristics, for some reason. We've opted to keep using the old version from Wheezy (0.9.10) to keep the same performance. | ||
+ | </note> | ||
===== Getting Graphite ===== | ===== Getting Graphite ===== | ||
A full Graphite setup consists of the Carbon backend server, which receives metrics over TCP or UDP, and a Graphite web frontend, which enables browsing and retrievial/rendering of the stored metrics. NAV will collect metrics and send to the former, while utilizing the latter to retrieve metrics and render graphs. | A full Graphite setup consists of the Carbon backend server, which receives metrics over TCP or UDP, and a Graphite web frontend, which enables browsing and retrievial/rendering of the stored metrics. NAV will collect metrics and send to the former, while utilizing the latter to retrieve metrics and render graphs. | ||
- | The Debian package ''graphite-carbon'' is present in the official Debian Wheezy distribution, but because of licensing issues, the ''graphite-web'' package did not make it into Wheezy in time. It is only available for the testing and unstable Debian distributions. If you have followed the instructions from [[nav_on_debian]], you will find a version of the ''graphite-web'' package that has been backported to Wheezy by us: | + | The Debian package ''graphite-carbon'' is present in the Debian Wheezy ''main'' archive, while the ''graphite-web'' package is in the ''wheezy-backports'' archive. |
- | + | ||
- | $ apt-cache policy graphite-web | + | |
- | graphite-web: | + | |
- | Installed: (none) | + | |
- | Candidate: 0.9.12-0uninett1~bpo70+1 | + | |
- | Version table: | + | |
- | 0.9.12-0uninett1~bpo70+1 0 | + | |
- | 500 https://nav.uninett.no/debian/ wheezy/nav amd64 Packages | + | |
Assuming you will be running Graphite on the same Debian server as you are running NAV, all you need to do to install Graphite is: | Assuming you will be running Graphite on the same Debian server as you are running NAV, all you need to do to install Graphite is: | ||
Line 44: | Line 39: | ||
</code> | </code> | ||
| | ||
- | Make sure the Carbon backend willbe automatically started at boot time, by editing ''/etc/default/graphite-carbon'' and ensure that: | + | Make sure the //carbon-cache// daemon is enabled (this will also make it run at boot-time), by editing ''/etc/default/graphite-carbon'' and ensure that: |
<code bash> | <code bash> | ||
Line 70: | Line 65: | ||
<code bash> | <code bash> | ||
- | createuser --login graphite | + | createuser --pwprompt --no-createrole --no-superuser --no-createdb --login graphite |
createdb --owner=graphite graphite | createdb --owner=graphite graphite | ||
</code> | </code> |