-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update spacing in removeBelowSeries assignment of name to match Graphite web #88
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@@ -70,9 +69,9 @@ func (f *removeBelowSeries) Do(ctx context.Context, e parser.Expr, from, until i | |||
} | |||
|
|||
r := a.CopyLink() | |||
r.Name = e.Target() + "(" + a.Name + "," + numberStr + ")" | |||
r.Name = e.Target() + "(" + a.Name + ", " + fmt.Sprintf("%d", int(number)) + ")" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the int conversion correct? GraphiteWeb seems to be using the float directly https://github.com/graphite-project/graphite-web/blob/master/webapp/graphite/render/functions.py#L3601
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's fair. I can change it back to a float
This comment has been minimized.
This comment has been minimized.
fcc6799
to
7669b3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Go coverage report: Click to expand.
Go lint report: No issues found. 😎 |
This PR updates the spacing in removeBelowSeries assignment of name in MetricData to include a space between the series name and number threshold. This is to match Graphite web's assignment of name for the results for removeBelowSeries.