Fedora 4 comes with built-in profiling machinery that keeps track of how many times specific services have been requested, how long each request takes to be serviced, etc. There are presently two ways of visualizing the output of this "metrics" collection.
This guide is designed to help you install and configure a Graphite instance. The directions below are based on the instructions provided by Graphite.
...
Clone the GitHub repositories (use either the 0.9.x [stable] branch or master [unstable/alpha] branch).Note:
Note |
---|
The source files found at https://launchpad.net/graphite/+download/ are very out of date and do not support Django versions greater than 1.4. |
On an Linux-based system, the following commands should get the correct branches of the three Graphite modules.
...
Code Block |
---|
cd /opt/graphite sudo chown -R ubuntu:ubuntu * cd /opt/graphite/conf cp carbon.conf.example carbon.conf cp storage-schemas.conf.example storage-schemas.conf cp graphite.wsgi.example graphite.wsgi |
This setups sets up a default data retention period of gathering data every second and storing it for 1 day. You can configure this by editing the storage-schemas.conf file.
...
No Format |
---|
DATABASES = { 'default': { 'NAME': '/opt/graphite/storage/graphite.db', 'ENGINE': 'django.db.backends.sqlite3', 'USER': '<username>', 'PASSWORD': '<password>', 'HOST': '', 'PORT': '' } } |
Note |
---|
...
If you receive an error "ImportError: cannot import name execute_manager", you have an old version of graphite-web that requires Django 1.4. Get the latest changes from the GitHub repositories. |
Set the permissions of the entire storage directory (default /opt/graphite/storage) and all files to be owned by the webserver process.
...
This starts the listener on localhost:2003, this can be configured in /opt/graphite/conf/carbon.conf.Note:
Note |
---|
If you receive the message: 'WHISPER_FALLOCATE_CREATE is enabled but linking failed.' This can be disabled by setting WHISPER_FALLOCATE_CREATE = False in /opt/graphite/conf/carbon.conf but this will not harm the running process and does not need to be disabled. |
Anchor | ||||
---|---|---|---|---|
|
...