Fix ApplyTemplate change in graphite parser

This commit is contained in:
Cameron Sparr 2015-10-16 16:43:31 -06:00
parent b15928c95e
commit b28b4bd71e
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ func (s *Statsd) parseName(bucket string) (string, map[string]string) {
name := bucketparts[0]
p, err := graphite.NewParserWithOptions(o)
if err == nil {
name, tags = p.ApplyTemplate(name)
name, tags, _, _ = p.ApplyTemplate(name)
}
name = strings.Replace(name, ".", "_", -1)
name = strings.Replace(name, "-", "__", -1)