Skip to content

Instantly share code, notes, and snippets.

@zehome
Created July 18, 2013 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zehome/6028730 to your computer and use it in GitHub Desktop.
Save zehome/6028730 to your computer and use it in GitHub Desktop.
--- a/app.py
+++ b/app.py
@@ -436,7 +436,7 @@ def build_graphs_from_targets(targets, query={}):
graph_config['targets'].append(targets[0])
else:
t = {
- 'target': 'sumSeries(%s)' % (','.join([t['graphite_metric'] for t in targets])),
+ 'target': 'sumSeries(%s)' % (','.join([t['target'] for t in targets])),
'graphite_metric': [t['graphite_metric'] for t in targets],
'variables': targets[0]['variables']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment