Skip to content
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

graphite parser: apply tags from the Parser on the template #4364

Merged
merged 1 commit into from
Oct 8, 2015

Conversation

sparrc
Copy link
Contributor

@sparrc sparrc commented Oct 7, 2015

follow-up to #4348, fix tag parsing behavior

@@ -157,7 +157,14 @@ func (p *Parser) ApplyTemplate(line string) (string, map[string]string) {
}
// decode the name and tags
template := p.matcher.Match(fields[0])
return template.Apply(fields[0])
name, tags := template.Apply(fields[0])
// Set the default tags on the point if they are not already set
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@otoolep
Copy link
Contributor

otoolep commented Oct 8, 2015

Yes, this should do as the PR title says. +1.

@sparrc sparrc merged commit 73a630d into master Oct 8, 2015
@sparrc sparrc deleted the graphite-parser branch October 8, 2015 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants