Skip to content

Commit

Permalink
don't add groupFunction tag to groupByTags output series
Browse files Browse the repository at this point in the history
  • Loading branch information
DanCech committed Sep 5, 2017
1 parent bac891f commit 0f27696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/graphite/render/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4156,9 +4156,9 @@ def groupByTags(requestContext, seriesList, callback, *tags):
for series in seriesList:
# key is the metric path for the new series
if 'name' not in tags:
key = ';'.join([name] + sorted([tag + '=' + series.tags.get(tag, '') for tag in tags] + ['groupFunction=' + callback]))
key = ';'.join([name] + sorted([tag + '=' + series.tags.get(tag, '') for tag in tags]))
else:
key = ';'.join([series.tags['name']] + sorted([tag + '=' + series.tags.get(tag, '') for tag in tags if tag <> 'name'] + ['groupFunction=' + callback]))
key = ';'.join([series.tags['name']] + sorted([tag + '=' + series.tags.get(tag, '') for tag in tags if tag <> 'name']))

if key not in metaSeries:
metaSeries[key] = [series]
Expand Down

0 comments on commit 0f27696

Please sign in to comment.