Está en la página 1de 3

Install Graphite 0.9.

12 on Windows
Reference
The new official installation documentation

(Incomplete)http://graphite.readthedocs.org/en/latest/install.html
Legacy official installation instructionshttp://graphite.wikidot.com/quickstart-
guide
Windows installation Summary http://www.s2-industries.com/wordpress/blog

1.1 Manually download and install


Install Python 2.7 http://www.python.org/download/
Install Setup Tool and Pip
o https://pip.pypa.io/en/latest/installing/
Install Windows version Twisted 12.3
o pip install TWISTED==12.3
Install Windows version pywin32
o Run pip install pypiwin32
Install Windows version GTK for Py2Cairo
o http://digitalpbk.blogspot.com.au/2012/03/installing-pygtk-pypango-and-
pycairo-on.html
o http://www.gtk.org/download/windows.php
Install Windows version Py2cairo
o http://www.lfd.uci.edu/~gohlke/pythonlibs/#pygtk
o Run pip install pycairo_gtk-1.10.0-cp27-none-win32.whl

1.2 pip Install


pip install zope.interface
pip install Django==1.5 (do not install the latest version)
pip install django-tagging
pip install pytz
pip install whisper
pip install carbon --install-option="--prefix=c:\python27\graphite" --install-option="-
-install-lib=c:\python27\graphite\lib"
pip install graphite-web --install-option="--prefix=c:\python27\graphite" --install-
option="--install-lib=c:\python27\graphite\webapp"

1.3 Configure
1. Profiles
at C:\Python27\graphite\conf , create

storage-schemas.conf and carbon.conf

C:\Python27\graphite\webapp\graphite

local_settings.py from local_settings.py.example.

2. Modify carbon to support windows


Reference - https://github.com/stephanstapel/carbon in springside Done on a much
simpler fork https://github.com/springside/carbon/ Modify
Loss of automatic recording carbon OccupancyCPU abilityYou can refer to submit records from
line Modify You can also download(version 0.9.13-SNAPSHOTNot synchronised)
Will C:\Python27\graphite\lib\carbon and C:\Python27\graphite\examples Content directly
overwritten

3. Modify graphite-web to support windows


in 0.9.12 version on Modify as follows

Modify graphite\webapp\graphite\thirparty\pytz
o On __init_.py on line 95 add C:\Python27\Lib\site-
packages\pytz\zoneinfo' to the list to assign it to tz_path
Modify webapp\graphite\storage.py
o metric_path = relative_path.replace('/','.') to metric_path =
metric_path.replace('\','.')
4. Initial user
c:\Python27\graphite\webapp\graphite>python manage.py syncdb <Enter login user
as root/rootroot>save in bult in sqllite database

1.4 Start up
Startup Carbon C:\Python27\graphite\Scripts\carbon-cache.py start
Startup Web django-admin.py runserver --pythonpath
C:\Python27\graphite\webapp --settings graphite.settings 0.0.0.0:8080
Startup example-clientC:\Python27\graphite\examples\example-client.py
Timing has made real CPU data

1.5 View
DashBoard: http://localhost:8080/
Image: http://localhost:8080/render?from=-
10minutes&until=now&target=system.loadavg_1min
Json: http://localhost:8080/render?from=-
10minutes&until=now&target=system.loadavg_1min&format=json

También podría gustarte