This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -uirb /home/sandello/carbon-0.9.9/lib/carbon/conf.py /opt/graphite/lib/carbon/conf.py | |
--- /home/sandello/carbon-0.9.9/lib/carbon/conf.py 2011-10-05 12:30:07.000000000 +0400 | |
+++ /opt/graphite/lib/carbon/conf.py 2011-11-14 03:25:08.736500223 +0400 | |
@@ -32,8 +32,10 @@ | |
MAX_CACHE_SIZE=float('inf'), | |
MAX_UPDATES_PER_SECOND=1000, | |
MAX_CREATES_PER_MINUTE=float('inf'), | |
+ HF_METRICS_PREFIX='', | |
+ HF_METRICS_BATCH_SIZE=100, | |
LINE_RECEIVER_INTERFACE='0.0.0.0', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/webapp/content/js/composer.js b/webapp/content/js/composer.js | |
index 8e73a5c..734a381 100644 | |
--- a/webapp/content/js/composer.js | |
+++ b/webapp/content/js/composer.js | |
@@ -205,7 +205,7 @@ ParameterizedURL.prototype = { | |
setQueryString: function (qs) { | |
/* Use the given query string (and update this.params to match) */ | |
- this.queryString = qs.replace(/#/,"%23"); | |
+ this.queryString = qs.replace(/%/,"%25").replace(/#/,"%23"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.contrib import admin | |
from graphite.account.models import Profile,MyGraph | |
admin.site.register(Profile) | |
admin.site.register(MyGraph) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Filesystem layout (all directores should end in a /) | |
WEB_DIR = dirname( abspath(__file__) ) + '/' | |
WEBAPP_DIR = dirname( dirname(WEB_DIR) ) + '/' | |
GRAPHITE_ROOT = dirname( dirname(WEBAPP_DIR) ) + '/' | |
CONTENT_DIR = WEBAPP_DIR + 'content/' | |
CSS_DIR = CONTENT_DIR + 'css/' | |
THIRDPARTY_DIR = WEB_DIR + 'thirdparty/' | |
CONF_DIR = os.environ.get('GRAPHITE_CONF_DIR', GRAPHITE_ROOT + 'conf/') | |
STORAGE_DIR = os.environ.get('GRAPHITE_STORAGE_DIR', GRAPHITE_ROOT + 'storage/') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
<![CDATA[ | |
metadata = { | |
"area": { | |
"xmin": 39.195507812499997, | |
"ymin": 33.96875, | |
"ymax": 623.794921875, | |
"xmax": 1122 | |
}, | |
"series": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Adjustments | |
PATH=/bin:/usr/bin:/sbin:/usr/sbin | |
CARBON_SCRIPT=/etc/init.d/carbon-cache | |
CARBON_CONF=/etc/carbon/carbon.conf | |
RSYNC_OPTIONS='-av --ignore-existing' | |
WHISPER_BIN=/usr/bin | |
execute_cutover () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, time, whisper, shutil | |
from optparse import OptionParser | |
now = int( time.time() ) | |
option_parser = OptionParser( | |
usage='''%prog path from''') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Initialize a shell from the directory the graphite webapp's manage.py lives in. e.g.: | |
## /opt/graphite/webapp/graphite/ | |
## /usr/lib/python2.6/site-packages/graphite/ | |
## etc | |
# | |
# python manage.py shell | |
from graphite.render.datalib import CarbonLinkPool | |
# Connect to the carbon-cache instance 'a' on localhost: | |
carbon = CarbonLinkPool([ ('localhost', 7002, 'a') ], 1.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys, os, time, traceback | |
import whisper | |
from optparse import OptionParser | |
now = int(time.time()) | |
option_parser = OptionParser( | |
usage='''%prog path timePerPoint:timeToStore [timePerPoint:timeToStore]* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== modified file 'webapp/graphite/render/functions.py' | |
--- webapp/graphite/render/functions.py 2011-10-04 21:06:09 +0000 | |
+++ webapp/graphite/render/functions.py 2012-02-28 16:05:35 +0000 | |
@@ -225,44 +225,49 @@ | |
series[i] = value | |
return seriesList | |
-def asPercent(requestContext, seriesList1, seriesList2orNumber): | |
+def asPercent(requestContext, seriesList, total=None): | |
""" |