Try Graphite in Docker and have it running in seconds:
docker run -d \ --name graphite \ --restart=always \ -p 80:80 \ -p 2003-2004:2003-2004 \ -p 2023-2024:2023-2024 \ -p 8125:8125/udp \ -p 8126:8126 \ graphiteapp/graphite-statsd
Check docker repo for details.
This is portable, fast and easy to use. Or use instructions below for installation.
Graphite renders graphs using the Cairo graphics library. This adds dependencies on
several graphics-related libraries not typically found on a server. If you're installing from source
you can use the
check-dependencies.py script to see if the dependencies have
been met or not.
Basic Graphite requirements:
- a UNIX-like Operating System
- Python 2.7 or greater (including experimental Python3 support)
- Django 1.8 - 2.2 (for Python3 - 1.11 and newer), 1.11.19 or newer is recommended
- django-tagging 0.4.6 (not django-taggit yet)
- scandir (for Python older than 3.5)
- fontconfig and at least one font package (a system package usually)
- A WSGI server and web server. Popular choices are:
Additionally, the Graphite webapp and Carbon require the Whisper database library which is part of the Graphite project.
There are also several other dependencies required for additional features:
- Render caching: memcached and python-memcache
- LDAP authentication: python-ldap (for LDAP authentication support in the webapp)
- AMQP support: txamqp (version 0.8 is required)
- RRD support: python-rrdtool
- Dependent modules for additional database support (MySQL, PostgreSQL, etc). See Django database install instructions and the Django database documentation for details
.. seealso:: On some systems it is necessary to install fonts for Cairo to use. If the webapp is running but all graphs return as broken images, this may be why. * https://answers.launchpad.net/graphite/+question/38833 * https://answers.launchpad.net/graphite/+question/133390 * https://answers.launchpad.net/graphite/+question/127623
Most current Linux distributions have all of the requirements available in the base packages. RHEL based distributions may require the EPEL repository for requirements. Python module dependencies can be install with pip rather than system packages if desired or if using a Python version that differs from the system default. Some modules (such as Cairo) may require library development headers to be available.
Default Installation Layout
Graphite defaults to an installation layout that puts the entire install in its own directory:
Whisper is installed Python's system-wide site-packages directory with Whisper's utilities installed
in the bin dir of the system's default prefix (generally
Carbon and Graphite-web
Carbon and Graphite-web are installed in
/opt/graphite/ with the following layout:
Log directory for Carbon and Graphite-web
Location for RRD files to be read
Location for Whisper data files to be stored and read
Location for Ceres data files to be stored and read
Graphite-web static content directory
Several installation options exist:
.. toctree:: :maxdepth: 2 install-source install-pip install-virtualenv install-synthesize
.. toctree:: :maxdepth: 2 config-database-setup config-webapp config-local-settings config-carbon
Help! It didn't work!
If you run into any issues with Graphite, please to post a question to our Questions forum on Launchpad or join us on IRC in #graphite on FreeNode.
- :doc:`Configuring Carbon </config-carbon>`
- Once you've installed everything you will need to create some basic configuration.
Initially none of the config files are created by the installer but example files
are provided. Simply copy the
.examplefiles and customize.
- :doc:`Administering Carbon </admin-carbon>`
- Once Carbon is configured, you need to start it up.
- :doc:`Feeding In Your Data </feeding-carbon>`
- Once it's up and running, you need to feed it some data.
- :doc:`Configuring The Webapp </config-webapp>`
- With data getting into carbon, you probably want to look at graphs of it. So now we turn our attention to the webapp.
- :doc:`Administering The Webapp </admin-webapp>`
- Once its configured you'll need to get it running.
- :doc:`Using the Composer </composer>`
- Now that the webapp is running, you probably want to learn how to use it.
Unfortunately, native Graphite on Windows is completely unsupported, but you can run Graphite on Windows in Docker or the :doc:`Installing via Synthesize </install-synthesize>` article will help you set up a Vagrant VM that will run Graphite. In order to leverage this, you will need to install Vagrant.