Skip to content

Instantly share code, notes, and snippets.

@shawn-sterling
shawn-sterling / derived-value-migrate.py
Created May 15, 2012 19:08 — forked from mleinart/derived-value-migrate.py
Modify data in existing whisper files to be derived from existing counter values
#!/usr/bin/env python
import sys, time, whisper, shutil
from optparse import OptionParser
now = int( time.time() )
option_parser = OptionParser(
usage='''%prog path from''')
@shawn-sterling
shawn-sterling / graphite
Created February 14, 2012 21:30 — forked from drawks/graphite
Graphite on uwsgi/nginx
#This is the "site config" for nginx
upstream django {
# Distribute requests to servers based on client IP. This keeps load
# balancing fair but consistent per-client. In this instance we're
# only using one uWGSI worker anyway.
ip_hash;
server unix:/tmp/uwsgi.sock;
}
server {