Skip to content

Instantly share code, notes, and snippets.

@ajsquared
Created March 16, 2015 19:01
Show Gist options
  • Save ajsquared/9fb38229132d19e750f5 to your computer and use it in GitHub Desktop.
Save ajsquared/9fb38229132d19e750f5 to your computer and use it in GitHub Desktop.
diff --git a/visualization/graphite_dump.py b/visualization/graphite_dump.py
index 71b20c5..0022bf0 100755
--- a/visualization/graphite_dump.py
+++ b/visualization/graphite_dump.py
@@ -40,13 +40,16 @@ def get_max_metric(host, metric, start, end):
url = 'http://%s/render' % host
json_url = requests.get(url, params=params)
json_results = json_url.json()
+ print json_results
return max([point[0] for point in json_results[0]['datapoints']])
def get_tree(host, prefix, start, end):
nodes_to_process = [prefix]
(min, max) = get_bounds(host, prefix)
+ print "Bounds: %d %d" % (min, max)
leaves = get_children(host, prefix, min, max)
+ print leaves
results = {}
for leaf in leaves:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment