Running Graphite on Windows

December 9, 2012, with 6 comments
by admin

As mentioned in my previous post, I discovered the Graphite monitoring system and ported it to Windows. That wasn’t as difficult as I initially thought so I’ll explain the steps in detail in this and more upcoming posts so that everyone interested can follow the guide easily.

I got good hints and help from Ron Cordell from Relay Health who previously ported Graphite to Windows in a similar fashion. Thanks a lot, Ron!

Prerequisites for running Graphite are:

  • install Python (in my case: latest release of version 2.7)
  • install pypi/ setuptools (download here)

I forked the official carbon from github and inserted the changes I made. You find the fork here:

https://github.com/stephanstapel/carbon

There are some steps that you need to perform in order to successfully run Graphite on Windows:

  1. Download Carbon (here)
  2. Download Whisper (here)
  3. Download Graphite-web (here)
  4. Install Whisper using setup.py install
    It goes into the Python libs/site-packages directory
  5. Change the path in Carbon’s setup.cfg to a Windows path. In my case:
    prefix = d:\graphite
  6. Run setup.py install
  7. Change local data directory setting: open conf/carbon.conf and change LOCAL_DATA_DIR. Alternatively, you can set following environment variables as specified in carbon.conf file:
    • GRAPHITE_ROOT
    • GRAPHITE_CONF_DIR
    • GRAPHITE_STORAGE_DIR

After committing my changes into the branch, I issued a pull request and hope that it will be approved.

If you find anything not to be working, please let me know.

The second article will cover the Graphite-webapp. This app runs on Windows without any code change but requires some additional packages to be installed.

Aktualisiert am February 14, 2013

6 Kommentare

  1. Hi,
    I’m trying to install Graphite into Windows Server 2012. I have downloaded and installed Python version 3.3.0, but when you say “install pypi (download here)”, the link sends to me to a page with a big list of packages, and I don’t know which packages I should get. Please, could you say me which of them I have to install?, or what do I should install?

    thank you very much,

    Regards
    Carlos Coronel

  2. Carlos,
    which version of the setuptools did you install? I don’t see a listing for python 3.x

  3. hi,
    I am working on the windows process of shinken (monitoring tool based on python and using the nagios conf files). My goal is to provide setups for windows to use shinken. I have some request to install graphite on windows to use it with shinken. Is it possible for me to package your graphite installation into a setup.exe file and put it into the windows shinken setup (i think as an external setup.exe to check and trace the installations)? It will be easier for a lot of windows users to launch a setup.exe than make 3 githubs and other handmade modifications. Of course, i will not change the licence and put a reference of your work and website. Shinken is deliver with AGPL licence.

    Let me know if you want more explanations, or if you have some questions.
    Regards,

    Jean-Francois BUTKIEWICZ
    Veosoft, France

    • Hi Jean-Francois,

      unfortunately, my experience with setup generators is limited. I understand the concern that one has to checkout a couple of github repositories but on the otherhand this gives you always an up-to-date version of the application. It would probably be easier to write a small python script that checks out the projects and then modifies the configuration files as required. So more or less a setup.py.

      Cheers,

      Stephan

Schreibe einen Kommentar

Kommentar absenden >>