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
<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
# 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
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
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
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
!/bin/sh | |
exec 2>&1 | |
source /opt/graphite/.venv/bin/activate | |
exec chpst -e env -u graphite -l /opt/graphite/storage/carbon-cache.lock -- twistd --nodaemon --umask=0022 carbon-cache -c /opt/graphite/conf/carbon.conf start |
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
def do_some_walkin(start_path, matches=None): | |
if matches == None: | |
matches = [] | |
for root, dirs, files in os.walk(start_path, followlinks=True): | |
for dir in dirs: | |
if os.path.islink(os.path.join(root,dir)): | |
do_some_walkin(os.path.join(root,dir), matches) | |
root = root.replace(settings.RRD_DIR, '') | |
for basename in files: | |
if fnmatch.fnmatch(basename, '*.rrd'): |
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
def _walk(*args, **kwargs): | |
for root,dirs,files in os.walk(*args, **kwargs): | |
for dir in dirs: | |
qualified_dir = os.path.join(root,dir) | |
if os.path.islink(qualified_dir): | |
for x in os.walk(qualified_dir, **kwargs): | |
yield x | |
yield (root, dirs, files) |
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 os | |
import time | |
import whisper | |
import sys | |
from optparse import OptionParser | |
from random import Random | |
SPARSE_SPACING = 5 |