Created
March 16, 2015 19:01
-
-
Save ajsquared/9fb38229132d19e750f5 to your computer and use it in GitHub Desktop.
This file contains 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/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